{
  "@id": "urn:uuid:36730381-3fc2-4793-ae52-3907269ce89f",
  "role": "Document Creator",
  "author": "https://tuxcare.com",
  "version": 2,
  "@context": "https://openvex.dev/ns/v0.2.0",
  "timestamp": "2026-12-03T15:49:00.104585+00:00",
  "statements": [
    {
      "status": "not_affected",
      "products": [
        {
          "@id": "pkg:npm/unhead@1.11.21",
          "identifiers": {
            "purl": "pkg:npm/unhead@1.11.21"
          }
        }
      ],
      "timestamp": "2026-12-03T15:49:00.104585+00:00",
      "status_notes": "Vulnerability CVE-2026-31860 does not affect version 1.11.21 of unhead. Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): acceptDataAttrs in packages/shared/src/safe.ts only passes data-* keys matching /^[a-z][a-z0-9-]*[a-z0-9]$/i, and the link href check decodes numeric entities and lowercases the value before looking for javascript: / data:. Verified on this branch: useHeadSafe({ link: [{ rel: 'icon', href: '/x.png', 'data-x onload=alert(1) y': 'z' }] }) renders <link href=\"/x.png\" rel=\"icon\"> (the key is dropped, same for meta); npm unhead 1.11.20 renders the onload.",
      "justification": "vulnerable_code_not_present",
      "vulnerability": {
        "name": "CVE-2026-31860"
      },
      "impact_statement": "Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): acceptDataAttrs in packages/shared/src/safe.ts only passes data-* keys matching /^[a-z][a-z0-9-]*[a-z0-9]$/i, and the link href check decodes numeric entities and lowercases the value before looking for javascript: / data:. Verified on this branch: useHeadSafe({ link: [{ rel: 'icon', href: '/x.png', 'data-x onload=alert(1) y': 'z' }] }) renders <link href=\"/x.png\" rel=\"icon\"> (the key is dropped, same for meta); npm unhead 1.11.20 renders the onload."
    },
    {
      "status": "not_affected",
      "products": [
        {
          "@id": "pkg:npm/unhead@1.11.21",
          "identifiers": {
            "purl": "pkg:npm/unhead@1.11.21"
          }
        }
      ],
      "timestamp": "2026-12-03T15:49:00.104585+00:00",
      "status_notes": "Vulnerability CVE-2026-31873 does not affect version 1.11.21 of unhead. Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): the link href check in packages/shared/src/safe.ts lowercases the entity-decoded value before looking for javascript: / data:. Verified on this branch: useHeadSafe link hrefs 'DATA:image/svg+xml,...' and 'JAVASCRIPT:alert(1)' are dropped; npm unhead 1.11.20 renders both.",
      "justification": "vulnerable_code_not_present",
      "vulnerability": {
        "name": "CVE-2026-31873"
      },
      "impact_statement": "Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): the link href check in packages/shared/src/safe.ts lowercases the entity-decoded value before looking for javascript: / data:. Verified on this branch: useHeadSafe link hrefs 'DATA:image/svg+xml,...' and 'JAVASCRIPT:alert(1)' are dropped; npm unhead 1.11.20 renders both."
    },
    {
      "status": "not_affected",
      "products": [
        {
          "@id": "pkg:npm/unhead@1.11.21",
          "identifiers": {
            "purl": "pkg:npm/unhead@1.11.21"
          }
        }
      ],
      "timestamp": "2026-12-03T15:49:00.104585+00:00",
      "status_notes": "Vulnerability CVE-2026-39315 does not affect version 1.11.21 of unhead. Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): the entity decoder in packages/shared/src/safe.ts uses /&#x([0-9a-f]+);?/gi and /&#(\\d+);?/g, with no digit cap. Verified on this branch: useHeadSafe link hrefs 'javascript&#0000000058;alert(1)' and 'javascript&#x000003A;alert(1)' are dropped; npm unhead 1.11.20 renders both.",
      "justification": "vulnerable_code_not_present",
      "vulnerability": {
        "name": "CVE-2026-39315"
      },
      "impact_statement": "Not affected unhead 1.11.21 already carries upstream's v1 backport acb54df1f (\"fix(v1): harden useHeadSafe input sanitization\"): the entity decoder in packages/shared/src/safe.ts uses /&#x([0-9a-f]+);?/gi and /&#(\\d+);?/g, with no digit cap. Verified on this branch: useHeadSafe link hrefs 'javascript&#0000000058;alert(1)' and 'javascript&#x000003A;alert(1)' are dropped; npm unhead 1.11.20 renders both."
    },
    {
      "status": "affected",
      "products": [
        {
          "@id": "pkg:npm/unhead@1.11.21",
          "identifiers": {
            "purl": "pkg:npm/unhead@1.11.21"
          }
        }
      ],
      "timestamp": "2026-11-23T10:48:21.589131+00:00",
      "status_notes": "Vulnerability GHSA-x7mm-9vvv-64w8 affects version 1.11.21 of unhead.",
      "vulnerability": {
        "name": "GHSA-x7mm-9vvv-64w8"
      },
      "action_statement": "Vulnerability GHSA-x7mm-9vvv-64w8 affects version 1.11.21 of unhead."
    }
  ]
}
