undici is vulnerable to Subresource Integrity (SRI) Bypass
59
CVE Score
Medium
Subresource Integrity (SRI) Bypass
fetch() verifies Subresource Integrity (SRI) metadata by looking up the algorithm token in a lowercase-only set, while the SRI specification treats tokens case-insensitively. A valid uppercase or mixed-case token such as SHA256-... is treated as unknown and skipped, so the integrity list is considered empty and the response is accepted. A server that returns a body different from the pinned digest therefore passes the check. The fix normalizes the algorithm token to ASCII lowercase before validation and digest selection.
Upgrade the undici library to the patch version. As a workaround, use lowercase algorithm tokens (sha256, sha384, sha512) in the integrity metadata.
You are affected if you are using a version that falls within the vulnerable range and you use fetch() with integrity metadata containing non-lowercase algorithm tokens (e.g. SHA256-... or Sha256-...).
7.15.0 - 7.30.0
Fixed in 7.30.18.0.0 - 8.12.1
Fixed in 8.12.2undici is vulnerable to Subresource Integrity (SRI) Bypass in versions 7.15.0 - 7.30.0 and 8.0.0 - 8.12.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.