CVE-2026-46625
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.
How to fix
- js-cookie javascript_cookie3.0.7 or later
- js-cookie3.0.7 or later
- access.redhat.com/errata/RHSA-2026:48151
- access.redhat.com/errata/RHSA-2026:36625
- access.redhat.com/errata/RHSA-2026:56338
- access.redhat.com/errata/RHSA-2026:56357
- access.redhat.com/errata/RHSA-2026:59153
- access.redhat.com/errata/RHSA-2026:48126
- access.redhat.com/errata/RHSA-2026:49642
- access.redhat.com/errata/RHSA-2026:52768
- access.redhat.com/errata/RHSA-2026:60520
- access.redhat.com/errata/RHSA-2026:33183
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| js-cookie javascript_cookie | v < 3.0.7 | 3.0.7 |
| redhat 3scale_api_management | 2.0 | — |
| redhat ansible_automation_platform | 2.0 | — |
| redhat openshift_ai | No range specified | — |
| redhat openshift_lightspeed | No range specified | — |
| redhat enterprise_linux | 8.0, 9.0, 10.0 | — |
| js-cookienpm | v < 3.0.7 | 3.0.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.