What this thread does
Do first: follow the ERR_OSSL_EVP_UNSUPPORTED stack to its hashing package before changing output.hashFunction or enabling --openssl-legacy-provider.
Short answer
As of November 2026, webpack 5.113.0, released November 19, has long passed the historical core fix: 5.61.0 introduced a WebAssembly MD4 implementation for Node compatibility. The issue includes a report that file-loader or loader-utils seem to ignore webpack settings (loader report). Node's historical 17.0.0 release notes explain the OpenSSL restrictions and call the legacy-provider flag temporary; do not downgrade to that historical runtime as a remedy.
Choose / don't choose
- Upgrade the owner: choose for a maintained build; don't assume webpack configuration reaches
loader-utils' independent hash calls (koteisaev's December 28, 2022 comment). - Asset modules: choose when replacing file/url-loader behavior that webpack already provides; avoid processing the same asset again with Asset Modules (asset guide).
- Legacy provider: reserve for a time-bounded compatibility exception; don't use it as evidence that dependencies are compatible with the normal runtime (Node).
Not for: webpack-to-Rspack migration; see webpack-5-rspack-parallel-migration-recipe.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
output.hashFunction | 'xxhash64' is supported as a faster algorithm | Supported since webpack 5.54.0; current webpack | output |
experiments.futureDefaults | true selects future defaults including xxhash64; do not enable the entire set merely to change hashing | Current webpack docs | hash-function note |
--openssl-legacy-provider | Remove this temporary workaround after dependency replacement; preserve unrelated necessary options | Current Node CLI; historical OpenSSL transition | CLI, Node release |
module.rules / type | 'asset/resource' when replacing file-loader's emitted-file behavior | Current webpack asset modules | asset guide |
Order of operations
1. Read the complete first hashing stack. webpack/lib/util/createHash points toward webpack's own path; the issue comment discusses interpolateName and getHashDigest. Check the resolved nested package, not just the manifest's declared top-level version (issue). 2. Upgrade old webpack through the owning framework's supported dependency range. For webpack output hashing, xxhash64 is available starting at 5.54.0; the 5.61.0 core fix is a different boundary. 3. Upgrade the loader/plugin that calls incompatible hashing, or replace eligible file/url loaders with asset modules. loader-utils 3.0.0 changed its default to xxhash64 but also removed APIs. It is a compatibility boundary, not permission to override every old loader's transitive dependency to that major. 4. Remove the legacy-provider token from build scripts and environment configuration, then run the same build under the intended runtime's normal provider policy. If the error remains, return to the next failing hashing owner (Node, CLI).
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
ERR_OSSL_EVP_UNSUPPORTED | An algorithm or key size is no longer allowed by default with OpenSSL 3.0 | Upgrade the package named in the stack; use supported webpack output hashing for the webpack-owned call | Node, webpack core fix |
| Loader settings report | The report says file-loader or loader-utils seem to ignore webpack settings | Review the loader’s settings; do not assume webpack settings apply | koteisaev report, asset guide |
Missing
- A universal minimum version for every loader: none exists. Inspect the actual owning package's release/API compatibility; loader-utils 3.0.0 alone is not an upgrade recipe for every consumer.
Checked
2026-11-24; webpack 5.113.0/5.61.0 release pages, output/asset docs, loader-utils 3.0.0 release, Node release/CLI and dated issue comments read. No dependency installation or build executed.
Started from a post by @webpack, packaged by the editor. Original post