{"answers":{"affected":"2 open source packages ship an affected version, including js-cookie. It affects 6 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46625 exists.","fix":"Upgrade js-cookie to 3.0.7 or later.","what":"CVE-2026-46625 is a high-severity unsafe deserialization vulnerability in Redhat Enterprise Linux, published on 10 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-46625 and fix it if it is affected.\n\nWhat it is: CVE-2026-46625 is a high-severity unsafe deserialization vulnerability in Redhat Enterprise Linux, published on 10 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46625 exists.\n\nAffected packages and fixed versions:\n- js-cookie (npm): affected all versions; fixed in 3.0.7\n- js-cookie (npm): affected all versions; fixed in 3.0.7\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-46625/ (Markdown: https://insights.sbomify.com/CVE-2026-46625/index.md)","id":"CVE-2026-46625","markdown":"https://insights.sbomify.com/CVE-2026-46625/index.md","name":"CVE-2026-46625","record":{"aliases":["CLEANSTART-2026-JL16021","CLSA-2026-1782089812","DEBIAN-CVE-2026-46625","ECHO-1569-0744-f0f7","GHSA-qjx8-664m-686j","MINI-4879-mp7p-3fp4","MINI-4vc3-x4mx-2v39","MINI-5697-9fqg-6779","MINI-8r84-xq7m-j33p","MINI-9h79-h2h5-2gfh","MINI-9vr9-mpf4-92fp","MINI-cg3f-q4wf-phpf","MINI-jhj4-7cx6-9c58","MINI-m7qf-mfgq-hx52","MINI-mqgh-vcc7-6v43","MINI-mxc6-6869-w4r4","MINI-p4w4-c5g6-q27h","MINI-pq59-h884-9cg2","MINI-wm42-phmr-7jgh","MINI-xfwr-cq4j-fq93","ROOT-APP-NPM-CVE-2026-46625","UBUNTU-CVE-2026-46625"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","other"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript cookie library","requires_auth":"none","summary":"Prototype pollution in js-cookie allows attackers to inject malicious cookie attributes, bypassing security controls like SameSite or Secure flags.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"javascript_cookie","vendor":"js-cookie"},{"product":"3scale_api_management","vendor":"redhat"},{"product":"ansible_automation_platform","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"openshift_ai","vendor":"redhat"},{"product":"openshift_lightspeed","vendor":"redhat"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"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":"JavaScript Cookie is a JavaScript API for handling cookies, client-side. Prior to version 3.0.7, js-cookie's internal assign() helper copies properties with for...in + plain assignment. When the source object is produced by JSON.parse, the JSON object's \"__proto__\" member is an own enumerable property, so the for…in enumerates it and the target[key] = source[key] write triggers the Object.prototype.__proto__ setter on the fresh target ({}). The result is a per-instance prototype hijack: Object.prototype itself is untouched, but the merged attributes object now inherits attacker-controlled keys. Because the consuming set() function then enumerates the merged object with another for...in, every key the attacker placed on the polluted prototype lands in the resulting Set-Cookie string as an attribute pair. The attacker can set domain=, secure=, samesite=, expires=, and path= on cookies whose attributes the developer thought were locked down. This issue has been patched in version 3.0.7.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection","id":"CVE-2026-46625","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"redhat:enterprise_linux","products":["redhat:enterprise_linux"],"type":"deserialization","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Twig: Sandbox resource exhaustion via unbounded `for` / `range()`","id":"CVE-2026-46627"},"packages":[{"ecosystem":"npm","fixed":["3.0.7"],"introduced":["0"],"last_affected":[],"package":"js-cookie","purl":null,"source":"GHSA-qjx8-664m-686j"},{"ecosystem":"npm","fixed":["3.0.7"],"introduced":["0"],"last_affected":[],"package":"js-cookie","purl":"pkg:npm/js-cookie","source":"GHSA-qjx8-664m-686j"}],"prev":{"headline":"Twenty: SQL Injection via the timeZone field","id":"CVE-2026-46624"},"products":["js-cookie"],"published":"2026-06-10","related":[],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-09","vendors":["js-cookie"]},"summary":"Prototype pollution in js-cookie allows attackers to inject malicious cookie attributes, bypassing security controls like SameSite or Secure flags.","url":"https://insights.sbomify.com/CVE-2026-46625/"}