CVE-2026-42548: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in flightphp core
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.
AI Analysis
Technical Summary
FlightPHP is a micro-framework for PHP. Versions before 3.18.1 have a reflected XSS vulnerability in the Flight::jsonp() method. This method improperly neutralizes input by concatenating the ?jsonp= query parameter directly into an application/javascript response without validating it as a legal JavaScript identifier. This allows attackers to inject arbitrary JavaScript code that executes in the origin context of the response. The vulnerability is tracked as CVE-2026-42548 and categorized under CWE-79. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. The issue is resolved in version 3.18.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the affected web application, potentially leading to session hijacking, defacement, or other malicious actions within the user's browser. The vulnerability affects all FlightPHP core versions prior to 3.18.1. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in FlightPHP version 3.18.1. Users should upgrade to version 3.18.1 or later to remediate the issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated beyond the fix in 3.18.1, so users should verify with the vendor advisory for the latest guidance.
CVE-2026-42548: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in flightphp core
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FlightPHP is a micro-framework for PHP. Versions before 3.18.1 have a reflected XSS vulnerability in the Flight::jsonp() method. This method improperly neutralizes input by concatenating the ?jsonp= query parameter directly into an application/javascript response without validating it as a legal JavaScript identifier. This allows attackers to inject arbitrary JavaScript code that executes in the origin context of the response. The vulnerability is tracked as CVE-2026-42548 and categorized under CWE-79. The vulnerability has a CVSS 4.0 score of 8.6, indicating high severity. The issue is resolved in version 3.18.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the affected web application, potentially leading to session hijacking, defacement, or other malicious actions within the user's browser. The vulnerability affects all FlightPHP core versions prior to 3.18.1. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability is fixed in FlightPHP version 3.18.1. Users should upgrade to version 3.18.1 or later to remediate the issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated beyond the fix in 3.18.1, so users should verify with the vendor advisory for the latest guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-28T16:56:50.191Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a04d644cbff5d861003f1f2
Added to database: 5/13/2026, 7:51:32 PM
Last enriched: 5/13/2026, 8:06:51 PM
Last updated: 5/14/2026, 5:54:02 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.