{"id":"CVE-2026-33993","published":"2026-03-27T22:14:03Z","modified":"2026-03-30T15:45:18Z","title":"Locutus has Prototype Pollution via __proto__ Key Injection in unserialize()","vendor":"locutusjs","product":"locutus","tier":"tail","description":{"text":"Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to version 3.0.25, the `unserialize()` function in `locutus/php/var/unserialize` assigns deserialized keys to plain objects via bracket notation without filtering the `__proto__` key. When a PHP serialized payload contains `__proto__` as an array or object key, JavaScript's `__proto__` setter is invoked, replacing the deserialized object's prototype with attacker-controlled content. This enables property injection, for...in propagation of injected properties, and denial of service via built-in method override. This is distinct from the previously reported prototype pollution in `parse_str` (GHSA-f98m-q3hr-p5wq, GHSA-rxrv-835q-v5mh) — `unserialize` is a different function with no mitigation applied. Version 3.0.25 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00658,"percentile":0.52421,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-4mph-v827-f877","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/locutusjs/locutus/pull/597","tags":["x_refsource_MISC"]},{"url":"https://github.com/locutusjs/locutus/commit/345a6211e1e6f939f96a7090bfeff642c9fcf9e4","tags":["x_refsource_MISC"]},{"url":"https://github.com/locutusjs/locutus/releases/tag/v3.0.25","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":10.48},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"locutusjs","affectedVersions":[{"vendor":"locutusjs","product":"locutus","versions":["< 3.0.25"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-30T15:45:05.433846Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"locutus","vulnerableRanges":["<3.0.25"],"patched":["3.0.25"],"from":["GHSA-4mph-v827-f877"],"provenance":"source"}],"summary":{"text":"The locutus JavaScript library (product \"locutus\", vendor locutusjs) contains a prototype pollution flaw in its unserialize() function, located in locutus/php/var/unserialize, which assigns deserialized keys to plain objects without filtering the __proto__ key. An attacker who can supply a PHP-serialized payload to this function, with no authentication, network access, or user interaction required, can replace the prototype of deserialized objects to inject properties (which then propagate through for...in loops) or override built-in methods to cause denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:40Z"},"euvd":{"id":"EUVD-2026-16888","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25521","published":"2026-02-04","fixed":"2.0.39","kev":false},{"cve":"CVE-2026-29091","published":"2026-03-06","fixed":"3.0.0","kev":false},{"cve":"CVE-2026-32304","published":"2026-03-12","fixed":"3.0.14","kev":false,"link":{"from":"CVE-2026-32304","to":"CVE-2026-33993","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:locutus","fromFixed":"3.0.14","toFixed":"3.0.25","daysApart":15}]}},{"cve":"CVE-2026-33993","published":"2026-03-27","fixed":"3.0.25","kev":false},{"cve":"CVE-2026-33994","published":"2026-03-27","fixed":"3.0.25","kev":false}],"package":"npm:locutus"}}