SCA: security update for twig/twig (GHSA-pr2w-4gpj-cpq4)

high Tenable Self-Hosted Container Security Plugin ID 442712

Description

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

- Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string
coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a
sandboxed template author to invoke __toString() on objects reachable in the render context through
conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names,
spread arguments, the do tag, and the .. range operator. This issue is fixed in version 3.26.0.
(CVE-2026-47732)

Solution

Update the twig/twig library and its related packages to version 3.26.0 or later.

See Also

https://github.com/advisories/GHSA-pr2w-4gpj-cpq4

Plugin Details

Severity: High

ID: 442712

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 6/6/2026

Updated: 7/20/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.77

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

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

CVSS Score Source: CVE-2026-47732

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

CVSS v4

Risk Factor: High

Base Score: 7.1

Threat Score: 5

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/5/2026

Vulnerability Publication Date: 6/5/2026

Reference Information

CVE: CVE-2026-47732

cwe: CWE-20