SecurityContext

CVE-2026-46625: js-cookie - Prototype Pollution

  • Cve: CVE-2026-46625
  • Name: js-cookie - Prototype Pollution
  • 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.
  • Impact: Attackers can manipulate cookie attributes like domain, secure, samesite, potentially bypassing security controls and affecting cookie behavior.
  • Remediation: Upgrade to version 3.0.7 or later.
  • Vulnerability type: prototype_pollution
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.00919
  • Epss percentile: 0.61172
  • Assignee: [email protected]
  • Published at: 2026-06-10T22:16:59Z
  • Age in days: 166
  • Modified at: 2026-09-09T13:20:18Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 16
  • Products total: 6
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-46625
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-1321Improperly Controlled Modification of Object Prototype Attributes
CWE-915Improperly Controlled Modification of Dynamically-Determined Object Attributes

Public exploits

UrlSourceAdded date
https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686jnvd2026-06-10

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020Patch
https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686jExploit, Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:33183Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:36625Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:48126Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:48151Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:49642Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:52768Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:56338Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:56357Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
js-cookie:javascript_cookie< 3.0.7/v1/products/js-cookie/javascript_cookie
redhat:enterprise_linux= 10.0, = 9.0, = 8.0/v1/products/redhat/enterprise_linux
redhat:ansible_automation_platform= 2.0/v1/products/redhat/ansible_automation_platform
redhat:openshift_aiall versions/v1/products/redhat/openshift_ai
redhat:3scale_api_management= 2.0/v1/products/redhat/3scale_api_management
redhat:openshift_lightspeedall versions/v1/products/redhat/openshift_lightspeed

Projects

RepositoryLink kindsIndexedUrl
js-cookie/js-cookiecommit, fix, package, releases, security_advisoryyes/v1/repositories/js-cookie/js-cookie

Index

  • Repositories: 817
  • Repositories high signal: 488
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-06-10
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts