SCA: security update for unhead (GHSA-g5xx-pwrp-g3fv)

medium Tenable Self-Hosted Container Security Plugin ID 438729

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-31860)

Solution

Update the unhead library and its related packages to version 2.1.11 or later.

See Also

https://github.com/advisories/GHSA-g5xx-pwrp-g3fv

Plugin Details

Severity: Medium

ID: 438729

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 3/12/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.42

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2026-31860

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 2.1

Threat Vector: CVSS:4.0/E:P

Vector: 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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/12/2026

Vulnerability Publication Date: 3/12/2026

Reference Information

CVE: CVE-2026-31860

cwe: CWE-79