# twig/twig (Packagist) vulnerabilities

Source: https://junglewise.ai/threats/technologies/twig-twig  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Updated: 9 November 2026, 03:07 UTC. Rebuilt every hour.  
Data: https://junglewise.ai/threats/technologies/twig-twig.json  
License: CC BY 4.0 with a link back

Junglewise Threat Intelligence has tracked 24 vulnerabilities in twig/twig (Packagist): 0 in the last 7 days and 0 in the last 90 days, 1 of them critical and 0 exploited in the wild. The most recent, CVE-2026-49981, was published on 14 July 2026.

## Counts

- Last 7 days: 0
- Last 30 days: 0
- Last 90 days: 0
- All time: 24 (1 critical, 0 exploited in the wild)

## About twig/twig (Packagist)

A flexible, fast, and secure template engine for the PHP programming language.

## Latest twig/twig (Packagist) vulnerabilities

- [CVE-2026-49981: Twig sandbox allow-list bypass via template cache reuse](https://junglewise.ai/threats/cve-2026-49981-twig-sandbox-allow-list-bypass-via-template-cache-reuse) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-48808: Twig sandbox bypass in column filter via SourcePolicyInterface](https://junglewise.ai/threats/cve-2026-48808-twig-sandbox-bypass-in-column-filter-via-sourcepolicyinterface) (medium, CVSS 0, published 14 Jul 2026)
- [CVE-2026-48807: Twig sandbox policy bypass via Traversable objects in filters and operators](https://junglewise.ai/threats/cve-2026-48807-twig-sandbox-policy-bypass-via-traversable-objects-in-filters-and) (medium, CVSS 0, published 14 Jul 2026)
- [CVE-2026-48806: Twig sandbox policy bypass via dynamic mapping keys](https://junglewise.ai/threats/cve-2026-48806-twig-sandbox-policy-bypass-via-dynamic-mapping-keys) (medium, CVSS 5.3, published 14 Jul 2026)
- [CVE-2026-48805: Twig sandbox bypass in deprecated internal wrappers](https://junglewise.ai/threats/cve-2026-48805-twig-sandbox-bypass-in-deprecated-internal-wrappers) (low, CVSS 0, published 14 Jul 2026)
- [CVE-2026-47732: Twig sandbox policy bypass via unguarded string coercion](https://junglewise.ai/threats/cve-2026-47732-twig-sandbox-policy-bypass-via-unguarded-string-coercion) (high, CVSS 0, published 14 Jul 2026)
- [CVE-2026-47730: Twig XSS in Profiler HtmlDumper](https://junglewise.ai/threats/cve-2026-47730-twig-xss-in-profiler-htmldumper) (low, CVSS 0, published 14 Jul 2026)
- [CVE-2026-46640: Twig PHP code injection in macro-reference compilation](https://junglewise.ai/threats/cve-2026-46640-twig-php-code-injection-in-macro-reference-compilation) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46639: Twig sandbox bypass in object-destructuring assignment](https://junglewise.ai/threats/cve-2026-46639-twig-sandbox-bypass-in-object-destructuring-assignment) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46638: Twig sandbox bypass in cached template inclusion](https://junglewise.ai/threats/cve-2026-46638-twig-sandbox-bypass-in-cached-template-inclusion) (medium, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46635: Twig sandbox property allowlist bypass in column filter](https://junglewise.ai/threats/cve-2026-46635-twig-sandbox-property-allowlist-bypass-in-column-filter) (medium, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46634: Twig sandbox bypass via template_from_string in SourcePolicyInterface](https://junglewise.ai/threats/cve-2026-46634-twig-sandbox-bypass-via-template-from-string-in) (medium, CVSS 0, published 14 Jul 2026)
- [CVE-2026-46633: Twig PHP code injection via use tag template name](https://junglewise.ai/threats/cve-2026-46633-twig-php-code-injection-via-use-tag-template-name) (critical, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46628: Twig XSS via incorrect autoescaping in spaceless filter](https://junglewise.ai/threats/cve-2026-46628-twig-xss-via-incorrect-autoescaping-in-spaceless-filter) (medium, CVSS 4, published 14 Jul 2026)
- [CVE-2026-24425: Twig PHP sandbox bypass in SourcePolicyInterface](https://junglewise.ai/threats/cve-2026-24425-twig-php-sandbox-bypass-in-sourcepolicyinterface) (high, CVSS 8.8, published 20 May 2026)
- [CVE-2025-24374: Twig security issue where escaping was missing when using null coalesce operator](https://junglewise.ai/threats/cve-2025-24374-twig-security-issue-where-escaping-was-missing-when-using-null) (low, CVSS 3.1, published 29 Jan 2025)
- [CVE-2024-51755: Twig has unguarded calls to `__isset()` and to array-accesses when the sandbox is enabled](https://junglewise.ai/threats/cve-2024-51755-twig-has-unguarded-calls-to-isset-and-to-array-accesses-when-the) (low, CVSS 3.1, published 6 Nov 2024)
- [CVE-2024-51754: Twig has unguarded calls to `__toString()` when nesting an object into an array](https://junglewise.ai/threats/cve-2024-51754-twig-has-unguarded-calls-to-tostring-when-nesting-an-object-into) (low, CVSS 3.1, published 6 Nov 2024)
- [CVE-2024-45411: Twig has a possible sandbox bypass](https://junglewise.ai/threats/cve-2024-45411-twig-has-a-possible-sandbox-bypass) (low, CVSS 3.1, published 9 Sep 2024)
- [Twig Path Traversal vulnerability in the filesystem loader](https://junglewise.ai/threats/twig-path-traversal-vulnerability-in-the-filesystem-loader-1a02a198) (low, CVSS 3.1, published 30 May 2024)
- [CVE-2022-39261: Twig may load a template outside a configured directory when using the filesystem loader](https://junglewise.ai/threats/cve-2022-39261-drupal-core-2022-016-drupal-uses-the-twig-https-twig-symfony-com) (low, CVSS 3.1, published 30 Sep 2022)
- [CVE-2015-7809: Twig remote code execution in templates](https://junglewise.ai/threats/cve-2015-7809-twig-remote-code-execution-in-templates) (low, CVSS 3.1, published 14 May 2022)
- [CVE-2019-9942: Twig Sandbox Information Disclosure](https://junglewise.ai/threats/cve-2019-9942-twig-sandbox-information-disclosure) (low, CVSS 3.1, published 26 Mar 2022)
- [CVE-2022-23614: Code injection in Twig](https://junglewise.ai/threats/cve-2022-23614-code-injection-in-twig) (low, CVSS 3.1, published 10 Feb 2022)

## Most severe twig/twig (Packagist) vulnerabilities

- [CVE-2026-46633: Twig PHP code injection via use tag template name](https://junglewise.ai/threats/cve-2026-46633-twig-php-code-injection-via-use-tag-template-name) (critical, CVSS 4, published 14 Jul 2026)
- [CVE-2026-24425: Twig PHP sandbox bypass in SourcePolicyInterface](https://junglewise.ai/threats/cve-2026-24425-twig-php-sandbox-bypass-in-sourcepolicyinterface) (high, CVSS 8.8, published 20 May 2026)
- [CVE-2026-46640: Twig PHP code injection in macro-reference compilation](https://junglewise.ai/threats/cve-2026-46640-twig-php-code-injection-in-macro-reference-compilation) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46639: Twig sandbox bypass in object-destructuring assignment](https://junglewise.ai/threats/cve-2026-46639-twig-sandbox-bypass-in-object-destructuring-assignment) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-49981: Twig sandbox allow-list bypass via template cache reuse](https://junglewise.ai/threats/cve-2026-49981-twig-sandbox-allow-list-bypass-via-template-cache-reuse) (high, CVSS 4, published 14 Jul 2026)
- [CVE-2026-47732: Twig sandbox policy bypass via unguarded string coercion](https://junglewise.ai/threats/cve-2026-47732-twig-sandbox-policy-bypass-via-unguarded-string-coercion) (high, CVSS 0, published 14 Jul 2026)
- [CVE-2026-48806: Twig sandbox policy bypass via dynamic mapping keys](https://junglewise.ai/threats/cve-2026-48806-twig-sandbox-policy-bypass-via-dynamic-mapping-keys) (medium, CVSS 5.3, published 14 Jul 2026)
- [CVE-2026-46638: Twig sandbox bypass in cached template inclusion](https://junglewise.ai/threats/cve-2026-46638-twig-sandbox-bypass-in-cached-template-inclusion) (medium, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46635: Twig sandbox property allowlist bypass in column filter](https://junglewise.ai/threats/cve-2026-46635-twig-sandbox-property-allowlist-bypass-in-column-filter) (medium, CVSS 4, published 14 Jul 2026)
- [CVE-2026-46628: Twig XSS via incorrect autoescaping in spaceless filter](https://junglewise.ai/threats/cve-2026-46628-twig-xss-via-incorrect-autoescaping-in-spaceless-filter) (medium, CVSS 4, published 14 Jul 2026)

## Vulnerabilities per week

Nothing was published in the last eight weeks.

| Week of | Vulns | Critical | Exploited |
| --- | --- | --- | --- |
| 17 Aug 2026 | 0 | 0 | 0 |
| 24 Aug 2026 | 0 | 0 | 0 |
| 31 Aug 2026 | 0 | 0 | 0 |
| 7 Sep 2026 | 0 | 0 | 0 |
| 14 Sep 2026 | 0 | 0 | 0 |
| 21 Sep 2026 | 0 | 0 | 0 |
| 28 Sep 2026 | 0 | 0 | 0 |
| 5 Oct 2026 | 0 | 0 | 0 |
| 12 Oct 2026 | 0 | 0 | 0 |
| 19 Oct 2026 | 0 | 0 | 0 |
| 26 Oct 2026 | 0 | 0 | 0 |
| 2 Nov 2026 | 0 | 0 | 0 |
| 9 Nov 2026 | 0 | 0 | 0 |

## Other Packagist technologies

- [moodle/moodle (Packagist)](https://junglewise.ai/threats/technologies/moodle-moodle): 434 vulnerabilities
- [magento/community-edition (Packagist)](https://junglewise.ai/threats/technologies/packagist-magento-community-edition): 362 vulnerabilities
- [typo3/cms (Packagist)](https://junglewise.ai/threats/technologies/packagist-typo3-cms): 187 vulnerabilities
- [wwbn/avideo (Packagist)](https://junglewise.ai/threats/technologies/wwbn-avideo): 164 vulnerabilities
- [magento/project-community-edition (Packagist)](https://junglewise.ai/threats/technologies/magento-project-community-edition): 161 vulnerabilities
- [drupal/core (Packagist)](https://junglewise.ai/threats/technologies/packagist-drupal-core): 150 vulnerabilities
- [pimcore/pimcore (Packagist)](https://junglewise.ai/threats/technologies/pimcore-pimcore): 145 vulnerabilities
- [craftcms/cms (Packagist)](https://junglewise.ai/threats/technologies/craftcms-cms): 143 vulnerabilities
- [dolibarr/dolibarr (Packagist)](https://junglewise.ai/threats/technologies/dolibarr-dolibarr): 127 vulnerabilities
- [getgrav/grav (Packagist)](https://junglewise.ai/threats/technologies/getgrav-grav): 127 vulnerabilities
- [typo3/cms-core (Packagist)](https://junglewise.ai/threats/technologies/typo3-cms-core): 127 vulnerabilities
- [concrete5/concrete5 (Packagist)](https://junglewise.ai/threats/technologies/concrete5-concrete5): 122 vulnerabilities

## Sources

NVD, GitHub Security Advisories, OSV, the CISA Known Exploited Vulnerabilities catalog, FIRST EPSS and vendor advisories. Rebuilt every hour. Cite as: Junglewise Threat Intelligence, "twig/twig (Packagist) vulnerabilities", https://junglewise.ai/threats/technologies/twig-twig, 9 November 2026.
