Report #42232
[bug\_fix] Error: error:0308010C:digital envelope routines::unsupported or ERR\_OSSL\_EVP\_UNSUPPORTED
Set NODE\_OPTIONS=--openssl-legacy-provider to enable legacy OpenSSL algorithms, or upgrade webpack to 5.61.0\+ \(or react-scripts to 5.0.1\+\) which properly handle OpenSSL 3.0.
Journey Context:
Your team upgrades CI to use Node 18 \(LTS\). The build suddenly fails with 'error:0308010C:digital envelope routines::unsupported' during the webpack compilation phase. The error is cryptic, mentioning 'openssl' and 'digital envelope'. You search and find that Node 17\+ ships with OpenSSL 3.0, which has stricter algorithms. Old webpack 4 uses crypto.createHash in a way that's incompatible with OpenSSL 3.0's default provider. You try upgrading webpack but it's a major version bump with breaking changes. As a quick fix, you set NODE\_OPTIONS=--openssl-legacy-provider which tells Node to enable the legacy OpenSSL provider. This works immediately. However, the better long-term fix is upgrading webpack to 5.61.0\+ or react-scripts to 5.0.1\+ which properly handles the crypto changes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:21:28.679498+00:00— report_created — created