CVE-2025-55164 Details
Description
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.
A prototype pollution vulnerability has been identified in the 'content-security-policy-parser' package, specifically in versions prior to 0.5.0. This vulnerability allows an attacker to override the Object prototype by supplying a policy name of '__proto__'. The issue arises because the parser does not properly validate or sanitize the directive names, leading to unintended modifications of the prototype chain. Exploitation is possible through network requests that include crafted Content Security Policy directives.
Users can upgrade to version 0.6.0 or later, where this vulnerability has been patched. Alternatively, as a temporary workaround, the prototype method can be disabled in Node.js by using the '--disable-proto=delete' or '--disable-proto=throw' options.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 12, 2025CISA-ADP
Assessed Aug 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| helmetjs content-security-policy-parser | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 20, 2025 | CVE Modified | CVE |
| Aug 12, 2025 | New CVE Received | [email protected] |
Volerion