{"url":"http://public2.vulnerablecode.io/api/packages/965204?format=json","purl":"pkg:npm/unhead@2.0.4","type":"npm","namespace":"","name":"unhead","version":"2.0.4","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2.1.11","latest_non_vulnerable_version":"3.0.1","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/71341?format=json","vulnerability_id":"VCID-4ea6-rues-sygu","summary":"Unhead is a document head and template manager. Prior to 2.1.11, The link.href check in makeTagSafe (safe.ts) uses String.includes(), which is case-sensitive. Browsers treat URI schemes case-insensitively. DATA:text/css,... is the same as data:text/css,... to the browser, but 'DATA:...'.includes('data:') returns false. An attacker can inject arbitrary CSS for UI redressing or data exfiltration via CSS attribute selectors with background-image callbacks. This vulnerability is fixed in 2.1.11.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31873","reference_id":"","reference_type":"","scores":[{"value":"0.0002","scoring_system":"epss","scoring_elements":"0.05725","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31873"},{"reference_url":"https://github.com/unjs/unhead","reference_id":"","reference_type":"","scores":[{"value":"0.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"},{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/unjs/unhead"},{"reference_url":"https://github.com/unjs/unhead/releases/tag/v2.1.11","reference_id":"","reference_type":"","scores":[{"value":"0.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"},{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/unjs/unhead/releases/tag/v2.1.11"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31873","reference_id":"","reference_type":"","scores":[{"value":"0.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"},{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31873"},{"reference_url":"https://github.com/advisories/GHSA-5339-hvwr-7582","reference_id":"GHSA-5339-hvwr-7582","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-5339-hvwr-7582"},{"reference_url":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582","reference_id":"GHSA-5339-hvwr-7582","reference_type":"","scores":[{"value":"0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"},{"value":"0.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"},{"value":"LOW","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-12T17:46:23Z/"}],"url":"https://github.com/unjs/unhead/security/advisories/GHSA-5339-hvwr-7582"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/374886?format=json","purl":"pkg:npm/unhead@2.1.11","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/unhead@2.1.11"}],"aliases":["CVE-2026-31873","GHSA-5339-hvwr-7582"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-4ea6-rues-sygu"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/71455?format=json","vulnerability_id":"VCID-uefh-sv4n-2kd4","summary":"Unhead is a document head and template manager. Prior to 2.1.11, useHeadSafe() can be bypassed to inject arbitrary HTML attributes, including event handlers, into SSR-rendered <head> tags. This is the composable that Nuxt docs recommend for safely handling user-generated content. The acceptDataAttrs function (safe.ts, line 16-20) allows any property key starting with data- through to the final HTML. It only checks the prefix, not whether the key contains spaces or other characters that break HTML attribute parsing. This vulnerability is fixed in 2.1.11.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31860","reference_id":"","reference_type":"","scores":[{"value":"0.0002","scoring_system":"epss","scoring_elements":"0.05677","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31860"},{"reference_url":"https://github.com/unjs/unhead","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/unjs/unhead"},{"reference_url":"https://github.com/unjs/unhead/commit/9ecc4f9568b0e23938f36d4b23fcfa4a18a89045","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/unjs/unhead/commit/9ecc4f9568b0e23938f36d4b23fcfa4a18a89045"},{"reference_url":"https://github.com/unjs/unhead/releases/tag/v2.1.11","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/unjs/unhead/releases/tag/v2.1.11"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31860","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31860"},{"reference_url":"https://github.com/advisories/GHSA-g5xx-pwrp-g3fv","reference_id":"GHSA-g5xx-pwrp-g3fv","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-g5xx-pwrp-g3fv"},{"reference_url":"https://github.com/unjs/unhead/security/advisories/GHSA-g5xx-pwrp-g3fv","reference_id":"GHSA-g5xx-pwrp-g3fv","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-13T16:26:47Z/"}],"url":"https://github.com/unjs/unhead/security/advisories/GHSA-g5xx-pwrp-g3fv"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/374886?format=json","purl":"pkg:npm/unhead@2.1.11","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/unhead@2.1.11"}],"aliases":["CVE-2026-31860","GHSA-g5xx-pwrp-g3fv"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-uefh-sv4n-2kd4"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/unhead@2.0.4"}