Advisory

GHSA-p9fg-j6ww-953m

Also known as: None

Summary

FOSRestBundle issue with broken validation of JSONP callbacks

Details

Starting with FOSRestBundle 1.2 we switched to using willdurand/jsonp-callback-validator for validation of JSONP callbacks. However the change was implemented 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-15 21:41 UTC
Modified
2024-11-29 05:30 UTC

Affected packages and fixes

friendsofsymfony/rest-bundle

Packagist · All systems

Affected

  • introduced 1.2.0, fixed 1.2.2 (ecosystem)

Fixed versions

1.2.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences