CVE-2025-55164: content-security-policy-parser Prototype Pollution Vulnerability May Lead to RCE

Summary

12/08/2025
Yes i
High
8.8

CVE-2025-55164: content-security-policy-parser Prototype Pollution Vulnerability May Lead to RCE. Affects content-security-policy-parser versions < 0.6.0. Fixed in 0.6.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The content-security-policy-parser is an npm package used for parsing Content Security Policy (CSP) directives in web applications. It allows developers to define security policies that help mitigate risks such as cross-site scripting (XSS) attacks. However, versions 0.5.0 and earlier are susceptible to a prototype pollution vulnerability, which can lead to severe security issues.

Vulnerability Detail

A prototype pollution vulnerability exists in versions 0.5.0 and earlier of the content-security-policy-parser package. By providing a policy name called 'proto', an attacker can override the Object prototype, potentially leading to remote code execution (RCE) through other libraries that expose functionality. This vulnerability can also result in denial of service, as it allows overwriting of properties. Given that CSP is often provided in HTTP queries, network exploitation is a significant risk.

How To Fix

Latest published version: 0.6.0 as of 23 Oct 2026

npm install content-security-policy-parser@0.6.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable prototype methods in Node.js to neutralize potential prototype pollution attacks. Run your Node.js application with the following argument: --disable-proto=delete or --disable-proto=throw. This will help mitigate the risk until you can update the package.

Conclusion

The content-security-policy-parser package has a significant vulnerability that can lead to prototype pollution and potential remote code execution. It is crucial to update to version 0.6.0 or later to mitigate these risks. Additionally, using workarounds can help protect your application until the update is applied.

See every vulnerability recorded for content-security-policy-parser →

Share this vulnerability

FAQ

Prototype pollution is a type of vulnerability that allows an attacker to modify the prototype of built-in objects in JavaScript, which can lead to unexpected behavior and security issues.

If exploited, this vulnerability can allow an attacker to execute arbitrary code or cause denial of service by overwriting critical properties in your application.

If you are using content-security-policy-parser version 0.5.0 or earlier, your application is at risk. You can check for vulnerabilities using Vulert, which monitors your package-lock.json for open-source vulnerabilities.

You should update your package if you are using version 0.5.0 or earlier. The latest version, 0.6.0, contains the necessary patches.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities in your software. You can use the Vulert playground to check if your application is affected by this vulnerability without any signup.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 0.6.0 as of 23 Oct 2026

npm install content-security-policy-parser@0.6.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback