Prototype Pollution
Description
phpjs is vulnerable to Prototype Pollution via parse_str, allowing attackers to pollute object prototypes.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
phpjs is vulnerable to Prototype Pollution via parse_str, allowing attackers to pollute object prototypes.
Vulnerability
Overview CVE-2020-7700 affects the phpjs npm package, a community port of PHP functions to JavaScript. The parse_str function is vulnerable to Prototype Pollution because it does not sanitize keys in the query string, allowing an attacker to set arbitrary properties on Object.prototype.
Exploitation
An attacker can exploit this by providing a crafted string such as __proto__[polluted]=true to parse_str. No authentication is required; any application that passes user-controlled input to this function is affected. The attack runs client-side or server-side (Node.js) depending on the environment.
Impact
Successful prototype pollution can lead to unexpected behavior, denial of service, or property injection. In some contexts, it may enable further attacks like remote code execution if combined with other vulnerabilities that rely on object properties.
Mitigation
As of August 2020, no patched version of phpjs exists; the package is unmaintained. The recommended mitigation is to avoid using phpjs or to sanitize input before passing it to parse_str.
References: [1] NVD - CVE-2020-7700 [2] Snyk Vulnerability Database - SNYK-JS-PHPJS-598681
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpjsnpm | <= 1.3.2 | — |
Affected products
2- phpjs/phpjsdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-m428-jqc4-2p5jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-7700ghsaADVISORY
- snyk.io/vuln/SNYK-JS-PHPJS-598681ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.