CVE-2026-46625CWE-1321CWE-915

CVE-2026-46625

High · published June 11, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
62.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00986 · 62.1th percentile
Weaknesses
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'); CWE-915 · Improperly Controlled Modification of Dynamically-Determined Object Attributes
Published
2026-06-11T02:16Z
Affected products (8)
ProductVersionsFixed in
js-cookie/javascript_cookie< 3.0.73.0.7
redhat/3scale_api_managementall versions—
redhat/ansible_automation_platformall versions—
redhat/openshift_aiall versions—
redhat/openshift_lightspeedall versions—
redhat/enterprise_linuxall versions—
redhat/enterprise_linuxall versions—
redhat/enterprise_linuxall versions—
References (17)
https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020 · [email protected]https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7 · [email protected]https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j · [email protected]https://access.redhat.com/errata/RHSA-2026:33183 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:36625 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:48126 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:48151 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:49642 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:52768 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:56338 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:56357 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:59153 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:60520 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/security/cve/CVE-2026-46625 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://bugzilla.redhat.com/show_bug.cgi?id=2487740 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j · 134c704f-9b21-4f2e-91b3-4a467353bcc0https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
EPSS history
Timeline
  • 10 JUN 21:18Z
    JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection
    cvelistv5