CVE-2026-42548 Details
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.
A reflected cross-site scripting vulnerability has been identified in Flight PHP versions prior to 3.18.1. The issue arises in the Flight::jsonp() method, which improperly concatenates the ?jsonp= query parameter into the response body for application/javascript content type. This lack of validation allows an attacker to inject arbitrary JavaScript that executes in the context of the response origin.
Users can upgrade to Flight PHP version 3.18.1 or later, where this vulnerability has been fixed. The patched version validates the JSONP callback name before including it in the response.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 13, 2026CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/flightphp/core/security/advisories/GHSA-fcx8-ph5r-mxr4 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/flightphp/core/security/advisories/GHSA-fcx8-ph5r-mxr4 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Flight | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 14, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | New CVE Received | [email protected] |
Volerion