CVE-2024-37156 TokenController formName not sanitized in hidden input
An attacker can execute arbitrary scripts in the victim's browser via unsanitized form name input in the Sulu Form Bundle.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-37156?
CVE-2024-37156 is a medium-severity cross-site scripting vulnerability in SuluFormBundle, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The SuluFormBundle adds support for creating dynamic forms in Sulu Admin. The TokenController get parameter formName is not sanitized in the returned input field which leads to XSS. This vulnerability is fixed in 2.5.3.
Which versions are affected by CVE-2024-37156?
2 open source packages ship an affected version, including sulu/form-bundle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sulu/form-bundle Packagist | From 2.0.0 | 2.5.3 |
sulu/form-bundle Packagist | From 2.0.0 | 2.5.3 |
Products include Sulu Suluformbundle.
How do I fix CVE-2024-37156?
Upgrade sulu/form-bundle to 2.5.3 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-37156 being exploited?
There is no known exploitation of CVE-2024-37156 in the wild and no public exploit code.
Sources
Also known as GHSA-rrvc-c7xg-7cf3.