CVE-2026-42548: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in flightphp core
FlightPHP core versions prior to 3.18.1 contain a reflected cross-site scripting (XSS) vulnerability in the Flight::jsonp() function. This occurs because the ? jsonp= query parameter is concatenated directly into a JavaScript response without validating that it is a legal JavaScript identifier. An attacker can exploit this to inject arbitrary JavaScript code that executes in the context of the response origin. The vulnerability is assigned CVE-2026-42548 and has a high severity score of 8.6. The issue is fixed in FlightPHP version 3.18.
AI Analysis
Technical Summary
CVE-2026-42548 is a reflected cross-site scripting vulnerability in the FlightPHP micro-framework core prior to version 3.18.1. The Flight::jsonp() method improperly concatenates the ?jsonp= query parameter directly into an application/javascript response without validating that the parameter value is a valid JavaScript identifier. This allows attackers to inject arbitrary JavaScript code that executes in the origin context of the response. The vulnerability is categorized under CWE-79 (Improper Neutralization of Input During Web Page Generation). It has a CVSS 4.0 score of 8.6, indicating high severity. The vulnerability is resolved in FlightPHP 3.18.1.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to perform reflected cross-site scripting attacks, leading to arbitrary JavaScript execution in the context of the affected web application. This can result in session hijacking, defacement, or other malicious actions executed by the victim's browser. The CVSS score of 8.6 reflects a high impact due to network attack vector, no privileges required, user interaction needed, and high impact on confidentiality and integrity.
Mitigation Recommendations
A fix for this vulnerability is available in FlightPHP version 3.18.1. Users and administrators should upgrade to version 3.18.1 or later to remediate this issue. Since this is not a cloud service, patching the affected software is required to mitigate the risk. No vendor advisory content contradicts this; therefore, upgrading is the recommended action.
CVE-2026-42548: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in flightphp core
Description
FlightPHP core versions prior to 3.18.1 contain a reflected cross-site scripting (XSS) vulnerability in the Flight::jsonp() function. This occurs because the ? jsonp= query parameter is concatenated directly into a JavaScript response without validating that it is a legal JavaScript identifier. An attacker can exploit this to inject arbitrary JavaScript code that executes in the context of the response origin. The vulnerability is assigned CVE-2026-42548 and has a high severity score of 8.6. The issue is fixed in FlightPHP version 3.18.
CVSS v4.0
Score 8.6high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42548 is a reflected cross-site scripting vulnerability in the FlightPHP micro-framework core prior to version 3.18.1. The Flight::jsonp() method improperly concatenates the ?jsonp= query parameter directly into an application/javascript response without validating that the parameter value is a valid JavaScript identifier. This allows attackers to inject arbitrary JavaScript code that executes in the origin context of the response. The vulnerability is categorized under CWE-79 (Improper Neutralization of Input During Web Page Generation). It has a CVSS 4.0 score of 8.6, indicating high severity. The vulnerability is resolved in FlightPHP 3.18.1.
Potential Impact
Successful exploitation of this vulnerability allows an attacker to perform reflected cross-site scripting attacks, leading to arbitrary JavaScript execution in the context of the affected web application. This can result in session hijacking, defacement, or other malicious actions executed by the victim's browser. The CVSS score of 8.6 reflects a high impact due to network attack vector, no privileges required, user interaction needed, and high impact on confidentiality and integrity.
Mitigation Recommendations
A fix for this vulnerability is available in FlightPHP version 3.18.1. Users and administrators should upgrade to version 3.18.1 or later to remediate this issue. Since this is not a cloud service, patching the affected software is required to mitigate the risk. No vendor advisory content contradicts this; therefore, upgrading is the recommended action.
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: 05/13/2026, 19:51:32 UTC
Last enriched: 05/21/2026, 12:23:50 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 57
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.