Report #50075
[bug\_fix] error:0308010C:digital envelope routines::unsupported \(ERR\_OSSL\_EVP\_UNSUPPORTED\)
Set environment variable \`NODE\_OPTIONS=--openssl-legacy-provider\` before running the build command, or upgrade webpack to v5.61.0\+ \(or react-scripts to 5.0.1\+\) which supports OpenSSL 3.0.
Journey Context:
You upgrade to Node 17 \(or 18/20\) and your Create React App project fails to build with "error:0308010C:digital envelope routines::unsupported". You search and find it's OpenSSL 3.0 in Node 17\+. Webpack 4 uses MD4 hash which OpenSSL 3.0 disables for FIPS compliance. You try upgrading Node but that makes it worse. You export \`NODE\_OPTIONS=--openssl-legacy-provider\` in your shell, and the build succeeds by enabling the legacy OpenSSL provider. Later you upgrade webpack to properly fix it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:32:21.655751+00:00— report_created — created