{"id":"CVE-2026-25521","aliases":["GHSA-rxrv-835q-v5mh"],"summary":"Locutus is vulnerable to Prototype Pollution","published_at":"2026-02-02T22:21:54Z","modified_at":"2026-10-05T15:45:04.416035Z","products":[],"rating":{"severity":"critical","score":9.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Critical","vendor_ratings":[{"source":"Red Hat","rating":"Critical"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0031399999279528856,"percentile":0.24886000156402588,"date":"2026-11-19T00:00:00Z"},"priority":8.9,"details":"Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. In versions from 2.0.12 to before 2.0.39, a prototype pollution vulnerability exists in locutus. Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype. This issue has been patched in version 2.0.39.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"locutusjs/locutus","versions":[">= 2.0.12, < 2.0.39"],"provider":"cvelistv5","source":"CVE-2026-25521","relation":"self"},{"ecosystem":"NVD","package":"locutus:locutus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.12"},{"fixed":"2.0.39"}]}],"fixed":["2.0.39"],"provider":"nvd","source":"CVE-2026-25521","relation":"self"},{"ecosystem":"npm","package":"locutus","purl":"pkg:npm/locutus","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.12"},{"fixed":"2.0.39"}]}],"fixed":["2.0.39"],"provider":"osv","source":"GHSA-rxrv-835q-v5mh","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/elasticsearch-operator-bundle","openshift-logging/elasticsearch-proxy-rhel9","openshift-logging/elasticsearch-rhel9-operator","openshift-logging/elasticsearch6-rhel9","openshift-logging/kibana6-rhel8","openshift-logging/logging-curator5-rhel9"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25521"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-25521","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-25521","license":"CC-BY-4.0","published_at":"2026-02-04T21:20:32.643Z","modified_at":"2026-07-15T02:49:16.91Z","summary":"Locutus is vulnerable to Prototype Pollution","details":"Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. In versions from 2.0.12 to before 2.0.39, a prototype pollution vulnerability exists in locutus. Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype. This issue has been patched in version 2.0.39.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"CVE-2026-25521"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-25521"}],"affected":[{"ecosystem":"CVE","package":"locutusjs/locutus","versions":[">= 2.0.12, < 2.0.39"],"provider":"cvelistv5","source":"CVE-2026-25521","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh"},{"type":"WEB","url":"https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c"}]},{"provider":"nvd","source_id":"CVE-2026-25521","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25521","severity":[],"affected":[{"ecosystem":"NVD","package":"locutus:locutus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.12"},{"fixed":"2.0.39"}]}],"fixed":["2.0.39"],"provider":"nvd","source":"CVE-2026-25521","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-rxrv-835q-v5mh","relation":"self","url":"https://osv.dev/vulnerability/GHSA-rxrv-835q-v5mh","license":"CC-BY-4.0","published_at":"2026-02-02T22:21:54Z","modified_at":"2026-10-05T15:45:04.416035Z","summary":"locutus is vulnerable to Prototype Pollution","details":"### Summary\nA Prototype Pollution vulnerability exists in the the npm package locutus (>2.0.12). Despite a previous fix that attempted to mitigate Prototype Pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype. This issue was fixed in version 2.0.39.\n\n### Details\nThe vulnerability resides in line 77 to 79 of https://github.com/locutusjs/locutus/blob/main/src/php/strings/parse_str.js where includes() function is used to check whether user provided input contain forbidden strings.\n\n### PoC\n\n#### Steps to reproduce\n1. Install latest version of locutus using npm install or cloning from git\n2. Run the following code snippet:\n\n```javascript\nString.prototype.includes = () => false;      \nconsole.log({}.polluted);\nconst locutus = require('locutus');\nlocutus.php.strings.parse_str('constructor[prototype][polluted]=yes');\nconsole.log({}.polluted);  // prints yes -> indicating that the patch was bypassed and Prototype Pollution occurred\n```\n\n#### Expected behavior\nPrototype Pollution should be prevented and {} should not gain new properties.\nThis should be printed on the console:\n```\nundefined\nundefined OR throw an Error\n```\n\n#### Actual behavior\nObject.prototype is polluted\nThis is printed on the console:\n```\nundefined \nyes\n```\n\n### Impact\nThis is a Prototype Pollution vulnerability, which can have severe security implications depending on how locutus is used by downstream applications. Any application that processes attacker-controlled input using this `locutus.php.strings.parse_str` may be affected. It could potentially lead to the following problems:\n1. Authentication bypass\n2. Denial of service\n3. Remote code execution (if polluted property is passed to sinks like eval or child_process)","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"GHSA-rxrv-835q-v5mh"}],"affected":[{"ecosystem":"npm","package":"locutus","purl":"pkg:npm/locutus","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.12"},{"fixed":"2.0.39"}]}],"fixed":["2.0.39"],"provider":"osv","source":"GHSA-rxrv-835q-v5mh","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25521"},{"type":"WEB","url":"https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-25521"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436950"},{"type":"PACKAGE","url":"https://github.com/locutusjs/locutus"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25521.json"}]},{"provider":"redhat-vex","source_id":"CVE-2026-25521","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-25521","license":"CC-BY-4.0","published_at":"2026-02-04T21:20:32.643Z","modified_at":"2026-03-16T08:31:19Z","summary":"locutus: Locutus is vulnerable to Prototype Pollution","details":"A prototype pollution flaw has been discovered in the Locutus npm library. Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2026-25521"},{"type":"Red Hat","score":"Critical","source":"CVE-2026-25521"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/elasticsearch-operator-bundle","openshift-logging/elasticsearch-proxy-rhel9","openshift-logging/elasticsearch-rhel9-operator","openshift-logging/elasticsearch6-rhel9","openshift-logging/kibana6-rhel8","openshift-logging/logging-curator5-rhel9"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25521"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25521.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-25521"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436950"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-25521"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25521"},{"type":"WEB","url":"https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c"},{"type":"WEB","url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh"}]}],"references":[{"type":"WEB","url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh"},{"type":"WEB","url":"https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25521"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-25521"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436950"},{"type":"PACKAGE","url":"https://github.com/locutusjs/locutus"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25521.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-25521"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-25521","url":"https://www.cve.org/CVERecord?id=CVE-2026-25521","license":"CC-BY-4.0","modified_at":"2026-07-15T02:49:16.91Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-25521","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25521","relation":"self"},{"provider":"osv","source_id":"GHSA-rxrv-835q-v5mh","url":"https://osv.dev/vulnerability/GHSA-rxrv-835q-v5mh","license":"CC-BY-4.0","modified_at":"2026-10-05T15:45:04.416035Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-25521","url":"https://access.redhat.com/security/cve/CVE-2026-25521","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:19Z","relation":"self"}]}
