Bug 2511394 - CVE-2026-46625 forgejo: JavaScript Cookie: Cookie attribute manipulation via prototype pollution [fedora-all]
Summary: CVE-2026-46625 forgejo: JavaScript Cookie: Cookie attribute manipulation via ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: forgejo
Version: 45
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact:
URL:
Whiteboard: {"flaws": ["4f5f478f-ce37-4659-a4c6-4...
Depends On:
Blocks: CVE-2026-46625
TreeView+ depends on / blocked
 
Reported: 2026-08-05 08:36 UTC by Srikanth Balasubramanian
Modified: 2026-08-17 15:46 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Srikanth Balasubramanian 2026-08-05 08:36:18 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:46:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


Note You need to log in before you can comment on or make changes to this bug.