GHSA-p9fg-j6ww-953m FOSRestBundle issue with broken validation of JSONP callbacks
Improper validation of JSONP callbacks in FOSRestBundle allows attackers to execute arbitrary JavaScript in victim browsers.
- 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 GHSA-p9fg-j6ww-953m?
GHSA-p9fg-j6ww-953m is a cross-site scripting vulnerability in friendsofsymfony/rest-bundle, published on 15 May 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
Which versions are affected by GHSA-p9fg-j6ww-953m?
2 open source packages ship an affected version, including friendsofsymfony/rest-bundle.
| Package | Affected | Fixed in |
|---|---|---|
friendsofsymfony/rest-bundle Packagist | From 1.2.0 | 1.2.2 |
friendsofsymfony/rest-bundle Packagist | From 1.2.0 | 1.2.2 |
How do I fix GHSA-p9fg-j6ww-953m?
Upgrade friendsofsymfony/rest-bundle to 1.2.2 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 GHSA-p9fg-j6ww-953m being exploited?
There is no known exploitation of GHSA-p9fg-j6ww-953m in the wild and no public exploit code.