7.5

CVE-2026-46625: JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection

Modified
AliasesUBUNTU-CVE-2026-46625DEBIAN-CVE-2026-46625CGA-3c2r-45p6-c4vg
Published 10-06-2026Last modified 09-09-2026

Vulnerability summary

CVE-2026-46625 is a high (CVSS 7.5) vulnerability in js-cookie javascript_cookie. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 61.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.92%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 10-06-2026
    PublishedVulnerability first disclosed.
  2. 09-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.92%

Chance of exploitation in the next 30 days

Percentile

61%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.92% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Js Cookie

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard59 products
  • commercial-gitlab-rails-ee-19.1< 19.1.7-r3
  • commercial-gitlab-rails-ee-19.2< 19.2.7-r1
  • commercial-gitlab-rails-ee-19.3< 19.3.3-r1
  • commercial-gitlab-rails-ee-fips-19.1All versions (No fix recorded) | < 19.1.9-r0
  • commercial-gitlab-rails-ee-fips-19.2< 19.2.7-r1
Redhat5 products
Js-cookie2 products
Wolfi2 products
  • opensearch-dashboards-3< 3.6.0-r6
  • saf< 1.6.0-r0
Debian1 product
  • node-js-cookieAll versions (No fix recorded) | < 3.0.7+~3.0.6-1
Npm1 product
  • js-cookie< 3.0.7
Ubuntu1 product
  • node-js-cookieAll versions (No fix recorded)

7 vendors · 71 products

References

22 links
Show all 22 references