Skip to content
OpenAdvisories
High · 8.6 CVE-2026-42548 EUVD-2026-30147GHSA-fcx8-ph5r-mxr4

Flight: Reflected XSS via unvalidated JSONP callback in Flight::jsonp()

Published May 13, 2026 · Updated May 14, 2026 · Assigned by GitHub_M

Description

Flight is an extensible micro-framework for PHP. Prior to 3.18.1, Flight::jsonp() concatenates the ?jsonp= query parameter directly into an application/javascript response body without validating that the value is a legal JavaScript identifier. An attacker can inject arbitrary JavaScript that executes in the response origin, enabling reflected cross-site scripting. This vulnerability is fixed in 3.18.1.

Affected products

VendorProductAffectedFixed
flightphp core < 3.18.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist flightphp/core < 3.18.1 3.18.1 GHSA-fcx8-ph5r-mxr4

References