GHSA-3xg3-cgvq-2xwr

Suggest an improvement
Source
https://github.com/advisories/GHSA-3xg3-cgvq-2xwr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-3xg3-cgvq-2xwr/GHSA-3xg3-cgvq-2xwr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3xg3-cgvq-2xwr
Aliases
Published
2025-01-29T18:41:43Z
Modified
2025-01-30T15:36:48.022757Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Twig security issue where escaping was missing when using null coalesce operator
Details

When using the ?? operator, output escaping was missing for the expression on the left side of the operator.

Database specific
{
    "nvd_published_at": "2025-01-29T16:15:44Z",
    "cwe_ids": [
        "CWE-74"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-29T18:41:43Z"
}
References

Affected packages

Packagist / twig/twig

Package

Name
twig/twig
Purl
pkg:composer/twig/twig

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.16.0
Fixed
3.19.0

Affected versions

v3.*

v3.16.0
v3.17.0
v3.17.1
v3.18.0