CVE Explorer
CVE-2026-46637
Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
affected · 3 assertions
{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/0
{"product":"cssinliner-extra","vendor":"twig","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/1
{"product":"markdown-extra","vendor":"twig","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/2
Affected products and versions
3 source assertions{"product":"Twig","vendor":"twigphp","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/0
{"product":"cssinliner-extra","vendor":"twig","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/1
{"product":"markdown-extra","vendor":"twig","versions":[{"status":"affected","version":"< 3.26.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/affected/2
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:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /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:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/references/1
{"name":"https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a","tags":["x_refsource_MISC"],"url":"https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/references/2
{"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:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /containers/cna/references/3
{"name":"https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3","tags":["x_refsource_CONFIRM"],"url":"https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bfd866ccfdf52eddf64589b46fbdc26df29373a03a39d264fa48f997b5d7e85 · sha256:54283ece9de52813… · /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.