Skip to main content
← All vulnerabilities
CVE-2025-55164GHSA-W2CQ-G8G3-GM83

content-security-policy-parser Prototype Pollution Vulnerability May Lead to RCE

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.6.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

content-security-policy-parser parses content security policy directives. A prototype pollution vulnerability exists in versions 0.5.0 and earlier, wherein if a policy name is called proto, one can override the Object prototype. This issue has been patched in version 0.6.0. A workaround involves disabling prototype method in NodeJS, neutralizing all possible prototype pollution attacks. Provide either --disable-proto=delete (recommended) or --disable-proto=throw as an argument to node to enable this feature.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • helmetjs content-security-policy-parser

    fixed in 0.6.0

  • content-security-policy-parsernpm

    fixed in 0.6.0

References 3

GitHub · helmetjs/content-security-policy-parser