Tag

Twig

All articles tagged with #twig

Twig Markdown Extra Patch Caps Converter Cache to Prevent Memory Exhaustion
cybersecurity14 hours ago

Twig Markdown Extra Patch Caps Converter Cache to Prevent Memory Exhaustion

The twig/markdown-extra PHP library has patched a low-severity vulnerability where unbounded caching of HTML-to-Markdown converters could exhaust memory in long-running workers. The fix, released in version 3.31.1, limits the cache to 100 entries, mirroring the behavior of other Twig extensions. The flaw, rated 2.3 on the CVSS 4.0 scale, allows attackers with low privileges to trigger resource consumption by passing template-controlled options, but it does not compromise data confidentiality or integrity.

Twig Sandbox Bypass Flaw CVE-2026-133772 Rated Low Severity
security14 hours ago

Twig Sandbox Bypass Flaw CVE-2026-133772 Rated Low Severity

A low-severity vulnerability in the Twig templating engine allows attackers to bypass sandbox restrictions by exploiting how the 'guard' tag parses unselected branches. The flaw, identified as CVE-2026-133772, affects versions 3.15.0 through 3.30.x and was patched in version 3.31.0. Although the CVSS score is 2.3, the issue stems from incorrect authorization checks where tags like 'extends' and 'macro' register effects even when their code branch is not executed.

Twig 3.31.0 Patch Resolves Low-Risk XSS Flaw in Macro Alias Escaping
security14 hours ago

Twig 3.31.0 Patch Resolves Low-Risk XSS Flaw in Macro Alias Escaping

Twig released version 3.31.0 to fix CVE-2026-133771, a low-severity cross-site scripting vulnerability. The flaw occurred when variables shared names with macro import aliases, causing the engine to skip output escaping. This allowed attackers to inject malicious scripts if they controlled the variable values. The issue affects versions prior to 3.31.0 and has been assigned a CVSS 4.0 score of 2.3. The fix removes the outdated safety rule for macro calls, ensuring all variables are properly escaped regardless of naming conflicts with imports in other scopes.

Twig 3.31.1 Patch Fixes Sandbox Escape Allowing Markup Object Rewriting
cybersecurity14 hours ago

Twig 3.31.1 Patch Fixes Sandbox Escape Allowing Markup Object Rewriting

A low-severity vulnerability in the Twig templating engine, identified as CVE-2026-133770, allowed sandboxed templates to modify application-owned Markup objects. The flaw, rated 2.1 on the CVSS 4.0 scale, enabled attackers to replace content in trusted, non-sandboxed pages by calling the constructor on shared objects. Symfony released version 3.31.1 to block this constructor access.

Twig HTML-Extra Patch Fixes Sandbox Bypass in CVA Function
security14 hours ago

Twig HTML-Extra Patch Fixes Sandbox Bypass in CVA Function

A low-severity vulnerability in the Twig HTML-Extra library allows sandboxed templates to access private and protected object properties via the html_cva function. The flaw affects versions 3.12.0 through 3.31.0 and has been patched in version 3.31.1. The issue stems from incorrect authorization checks when processing variant values, enabling attackers to read sensitive data if the sandbox permits the specific function and method.

Twig 3.31.1 Patch Fixes Sandbox Bypass in Join Filter
cybersecurity14 hours ago

Twig 3.31.1 Patch Fixes Sandbox Bypass in Join Filter

A medium-severity flaw in the Twig templating engine allows attackers to bypass sandbox restrictions by using the join filter on non-iterable objects. The vulnerability, identified as CVE-2026-133768, enables the exposure of private and protected properties that should be inaccessible. Symfony has released version 3.31.1 to address the issue, which carries a CVSS 4.0 score of 5.3.