# GHSA-p9fg-j6ww-953m: FOSRestBundle issue with broken validation of JSONP callbacks

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T21:41:09.000Z
- Modified: 2024-11-29T05:30:34.898Z

## Description

Starting with FOSRestBundle 1.2 we [switched](https://github.com/FriendsOfSymfony/FOSRestBundle/pull/642/files#diff-431bc57ca9ca16332c0cff43ad45263cR37) to using [willdurand/jsonp-callback-validator](https://github.com/willdurand/JsonpCallbackValidator) for validation of JSONP callbacks. However [the change was implemented](https://github.com/FriendsOfSymfony/FOSRestBundle/pull/665) incorrectly validating the callback query param name, rather than its value. Anyone using the JSONP handler (which is off by default) together with FOSRestBundle 1.2.0 or 1.2.1 should update to FOSRestBundle [1.2.2](https://github.com/FriendsOfSymfony/FOSRestBundle/releases/tag/1.2.2).

(As written by GitHub Advisory Database.)

## Affected

- friendsofsymfony/rest-bundle (Packagist): from 1.2.0 before 1.2.2

## References

- <https://github.com/FriendsOfSymfony/FOSRestBundle/commit/3dd7d40068360c23366fb4884c5d194c769ec2c1> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/rest-bundle/2014-01-22-1.yaml> (web)
- <https://github.com/FriendsOfSymfony/FOSRestBundle> (package)
- <https://symfony.com/blog/fosrestbundle-security-issue-with-jsonp-handler> (web)

## Sources

- GitHub Advisory Database: [GHSA-p9fg-j6ww-953m](https://github.com/advisories/GHSA-p9fg-j6ww-953m), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-p9fg-j6ww-953m · Whole record: https://cve.day/GHSA-p9fg-j6ww-953m.json · Rebuilt by cve.day 2026-11-25T22:56:32.680Z
