CVE Explorer
CVE-2026-46628
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-116","description":"CWE-116: Improper Encoding or Escaping of Output","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/twigphp/Twig/commit/3190b9ae12614dfd58cc5d8f394bac4708b17913","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/3190b9ae12614dfd58cc5d8f394bac4708b17913"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/releases/tag/v3.26.0","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/releases/tag/v3.26.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/references/2
{"tags":["exploit"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-4j38-f5cw-54h7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/adp/0/references/0
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-4j38-f5cw-54h7","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-4j38-f5cw-54h7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:363430b021640c7351d75dc2c2a9df97d2ec79518420fa7a61cbe9182cca747d · sha256:f67a340d22a8a049… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.