CVE-2026-46628: symfony twig Improper Encoding or Escaping of Output
CVSS: 5.4v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2026-46628DEBIAN-CVE-2026-46628CGA-675m-w5vh-m884CGA-w58m-vpj9-j3g8
Published 14-07-2026Last modified 15-07-2026
Vulnerability summary
CVE-2026-46628 is a medium (CVSS 5.4) Improper Encoding or Escaping of Output vulnerability in symfony twig. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 20.8% of scored vulnerabilities.
CVSS score
5.4/10
010
Medium · v3.1 (NVD)EPSS score
0.29%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 14-07-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
Description
Twig is a template language for PHP. Prior to 3.26.0, the deprecated spaceless filter is registered as safe for HTML, causing Twig autoescaping to emit attacker-controlled markup unescaped when spaceless is applied to untrusted input. This issue is fixed in version 3.26.0.
CVSS metrics
7 scores · 5 sources · 2 versionsMedium 5.1Preferred score · CVE.org (CNA)
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NSourcesAll 4 agree
- OSV · UbuntuEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- NVDNIST5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Medium 5.4Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
0.00 pp
From 0.29% on 20-09-2026
20-09-202620-10-2026
EPSS score0.29%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard1 product
- drupal-11.3< 11.3.10-r0
Debian1 product
- php-twig< 3.5.1-1+deb12u3 | < 3.27.0-0+deb13u1 | < 3.26.0-1
Symfony1 product
- twig< 3.26.0
Twigphp1 product
- twig< 3.26.0
Ubuntu1 product
- php-twigAll versions (No fix recorded)
5 vendors · 5 products
References
9 links- github.com/twigphp/Twig/security/advisories/GHSA-4j38-f5cw-54h7X Refsource CONFIRMAdvisoryVendor Advisory