SCA: security update for craftcms/cms (GHSA-fvwq-45qv-xvhv)

medium Tenable Cloud Security Plugin ID 438598

Description

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

- Craft is a content management system (CMS). The fix for CVE-2025-35939 in craftcms/cms introduced a
strip_tags() call in src/web/User.php to sanitize return URLs before they are stored in the session.
However, strip_tags() only removes HTML tags (angle brackets) -- it does not inspect or filter URL
schemes. Payloads like javascript:alert(document.cookie) contain no HTML tags and pass through
strip_tags() completely unmodified, enabling reflected XSS when the return URL is rendered in an href
attribute. This vulnerability is fixed in 5.9.7 and 4.17.3. (CVE-2026-31859)

Solution

Update the craftcms/cms library and its related packages to version 4.17.3 or later.

See Also

https://github.com/advisories/GHSA-fvwq-45qv-xvhv

Plugin Details

Severity: Medium

ID: 438598

Version: Revision 1.11

Type: Local

Family: SCA Checks

Published: 3/11/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: 4.7

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

CVSS Score Source: CVE-2026-31859

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

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:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/11/2026

Vulnerability Publication Date: 3/11/2026

Reference Information

CVE: CVE-2026-31859