{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "21.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "0a99c7525a1d0043e3182843ae33466ab7b19e74"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v21.0.0",
                "range": [
                  {
                    "fixed": "0a99c7525a1d0043e3182843ae33466ab7b19e74"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0a99c7525a1d0043e3182843ae33466ab7b19e74"
            }
          ],
          "repo": "https://github.com/capricorn86/happy-dom",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-c8p4-j97h-3vg8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118660.json"
  },
  "details": "Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 21.0.0, Happy DOM loads iframe src URLs and link rel=\"stylesheet\" href URLs by default while parsing untrusted HTML on the server because disableIframePageLoading and disableCSSFileLoading default to false. An attacker who controls parsed HTML can therefore cause server-side requests to arbitrary internal or cloud endpoints without an application opt-in and may expose confidential responses or credentials returned by those endpoints. This issue is fixed in version 21.0.0.",
  "id": "CVE-2026-118660",
  "modified": "2026-10-29T10:30:35.266610997Z",
  "published": "2026-10-28T20:23:10.122Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118660.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74"
    },
    {
      "type": "FIX",
      "url": "https://github.com/capricorn86/happy-dom/pull/2502"
    },
    {
      "type": "WEB",
      "url": "https://github.com/capricorn86/happy-dom/releases/tag/v21.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118660"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML"
}