Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-42548: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in flightphp core

0
High
VulnerabilityCVE-2026-42548cvecve-2026-42548cwe-79
Published: Wed May 13 2026 (05/13/2026, 19:21:44 UTC)
Source: CVE Database V5
Vendor/Project: flightphp
Product: 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

AILast updated: 05/13/2026, 20:06:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses