ADVISORIES

GitHub Advisory Database

GHSA-q847-2q57-wmr3

Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters

Details

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 for branch 4.4.

Credits

We would like to thank Pierre Rudloff for reporting the issue and to Nicolas Grekas for providing the fix.

Affected packages

EcosystemPackageAffected versions
Packagistsymfony/twig-bridge
From 2.0.0 before 4.4.51 (fixed in 4.4.51)
Packagistsymfony/twig-bridge
From 5.0.0 before 5.4.31 (fixed in 5.4.31)
Packagistsymfony/twig-bridge
From 6.0.0 before 6.3.8 (fixed in 6.3.8)
Packagistsymfony/symfony
From 2.0.0 before 4.4.51 (fixed in 4.4.51)
Packagistsymfony/symfony
From 5.0.0 before 5.4.31 (fixed in 5.4.31)
Packagistsymfony/symfony
From 6.0.0 before 6.3.8 (fixed in 6.3.8)

References