~ / search / GHSA-q847-2q57-wmr3

GHSA-q847-2q57-wmr3

Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters

Source: GitHub Advisory Database (reviewed) Moderate CVE-2023-46734

Packages

EcosystemPackageAffectedFixed in
Packagist symfony/twig-bridge >= 2.0.0, < 4.4.51 4.4.51
Packagist symfony/twig-bridge >= 5.0.0, < 5.4.31 5.4.31
Packagist symfony/twig-bridge >= 6.0.0, < 6.3.8 6.3.8
Packagist symfony/symfony >= 2.0.0, < 4.4.51 4.4.51
Packagist symfony/symfony >= 5.0.0, < 5.4.31 5.4.31
Packagist symfony/symfony >= 6.0.0, < 6.3.8 6.3.8

Details

As written in the advisory (Markdown source, shown as plain text).

### Description Some Twig filters in CodeExtension use "is_safe=html" but don't actually ensure their input is safe. ### Resolution Symfony now escapes the output of the affected filters. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c) for branch 4.4. ### Credits We would like to thank Pierre Rudloff for reporting the issue and to Nicolas Grekas for providing the fix.

References

External links from the advisory. They lead to third-party sites.