# CVE-2026-118777: Forge: Prototype Pollution in forge.http cookie handling via a malicious Set-Cookie

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T18:42:06.079Z
- Modified: 2026-11-04T16:49:51.240Z
- Also known as: GHSA-6wvx-3r32-xmcg
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the forge.http client stored cookie names and paths from Set-Cookie response headers in ordinary JavaScript objects. A malicious server could use the cookie name __proto__ so that the attacker-controlled cookie path was written as a property on Object.prototype, or use inherited names such as constructor to modify Object. An empty cookie value could use the removal path to delete an inherited Object.prototype property. Applications using forge.http directly or through forge.xhr are affected; applications that do not use forge.http are unaffected. This issue is fixed in version 1.4.1.

(As written by CVE List.)

## Affected

- digitalbazaar forge: < 1.4.1; before 1.4.1
- node-forge (npm): before 1.4.1

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/digitalbazaar/forge/security/advisories/GHSA-6wvx-3r32-xmcg> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/digitalbazaar/forge/commit/797c3f816a22748a96fceebb34eb3a6716853991> (patch, web)
- <https://github.com/digitalbazaar/forge/releases/tag/v1.4.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118777> (advisory)
- <https://github.com/digitalbazaar/forge> (package)

## Sources

- CVE List: [CVE-2026-118777](https://www.cve.org/CVERecord?id=CVE-2026-118777), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-6wvx-3r32-xmcg](https://github.com/advisories/GHSA-6wvx-3r32-xmcg), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-118777](https://nvd.nist.gov/vuln/detail/CVE-2026-118777), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-118777 · Whole record: https://cve.day/CVE-2026-118777.json · Rebuilt by cve.day 2026-11-25T22:59:47.822Z
