Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. happy-dom
  4. ›
  5. CVE-2026-118661

CVE-2026-118661: Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies

October 28, 2026

A cookie-scoping bug in happy-dom lets an attacker origin set cookies that a victim origin then receives, diverging from browser semantics.

References

  • github.com/advisories/GHSA-5fpq-26gf-qwcr
  • github.com/capricorn86/happy-dom/commit/f21dbd7d0a0c63cdd41954ba5d0f05def4e0f2b3
  • github.com/capricorn86/happy-dom/pull/2477
  • github.com/capricorn86/happy-dom/releases/tag/v20.14.6
  • github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr
  • nvd.nist.gov/vuln/detail/CVE-2026-118661

Code Behaviors & Features

Detect and mitigate CVE-2026-118661 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 20.14.6

Fixed versions

  • 20.14.6

Solution

Upgrade to version 20.14.6 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-565: Reliance on Cookies without Validation and Integrity Checking

Source file

npm/happy-dom/CVE-2026-118661.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:43 +0000.