{"answers":{"affected":"2 open source packages ship an affected version, including locutus. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25521 in the wild and no public exploit code.","fix":"Upgrade locutus to 2.0.39 or later.","what":"CVE-2026-25521 is a critical vulnerability in locutusjs locutus, published on 4 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25521 and fix it if it is affected.\n\nWhat it is: CVE-2026-25521 is a critical vulnerability in locutusjs locutus, published on 4 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-25521 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- locutus (npm): affected from 2.0.12; fixed in 2.0.39\n- locutus (npm): affected from 2.0.12; fixed in 2.0.39\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25521/ (Markdown: https://insights.sbomify.com/CVE-2026-25521/index.md)","id":"CVE-2026-25521","markdown":"https://insights.sbomify.com/CVE-2026-25521/index.md","name":"CVE-2026-25521","record":{"aliases":["GHSA-rxrv-835q-v5mh"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JavaScript stdlib library","requires_auth":"none","summary":"Attackers can pollute Object.prototype via crafted input, potentially leading to code execution or privilege escalation in applications using the Locutus library.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"locutus","vendor":"locutus"}],"cvss":{"score":9.4,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Locutus is vulnerable to Prototype Pollution","id":"CVE-2026-25521","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Craft Commerce has Stored XSS in Shipping Zone (Name \u0026 Description) Fields Leading to Potential Privilege Escalation","id":"CVE-2026-25522"},"packages":[{"ecosystem":"npm","fixed":["2.0.39"],"introduced":["2.0.12"],"last_affected":[],"package":"locutus","purl":null,"source":"GHSA-rxrv-835q-v5mh"},{"ecosystem":"npm","fixed":["2.0.39"],"introduced":["2.0.12"],"last_affected":[],"package":"locutus","purl":"pkg:npm/locutus","source":"GHSA-rxrv-835q-v5mh"}],"prev":{"headline":"SandboxJS has a Sandbox Escape","id":"CVE-2026-25520"},"products":["locutus"],"published":"2026-02-04","related":[{"cvss_score":9.8,"headline":"Locutus: RCE via unsanitized input in create_function()","id":"CVE-2026-32304","kev_date_added":null,"published":"2026-03-12"},{"cvss_score":9.8,"headline":"Prototype Pollution","id":"CVE-2020-7719","kev_date_added":null,"published":"2020-09-01"},{"cvss_score":8.1,"headline":"Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection","id":"CVE-2026-29091","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":6.9,"headline":"Locutus has Prototype Pollution via __proto__ Key Injection in unserialize()","id":"CVE-2026-33993","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":6.3,"headline":"Locutus Prototype Pollution due to incomplete fix for CVE-2026-25521","id":"CVE-2026-33994","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":5.3,"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2021-23392","kev_date_added":null,"published":"2021-06-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["locutusjs"]},"summary":"Attackers can pollute Object.prototype via crafted input, potentially leading to code execution or privilege escalation in applications using the Locutus library.","url":"https://insights.sbomify.com/CVE-2026-25521/"}