Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. flightphp/core
  4. ›
  5. CVE-2026-42548

CVE-2026-42548: Flight has reflected XSS through an unvalidated JSONP callback in Flight::jsonp()

May 6, 2026

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.

References

  • github.com/advisories/GHSA-fcx8-ph5r-mxr4
  • github.com/flightphp/core
  • github.com/flightphp/core/security/advisories/GHSA-fcx8-ph5r-mxr4
  • nvd.nist.gov/vuln/detail/CVE-2026-42548

Code Behaviors & Features

Detect and mitigate CVE-2026-42548 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.18.1

Fixed versions

  • 3.18.1

Solution

Upgrade to version 3.18.1 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/flightphp/core/CVE-2026-42548.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:14 +0000.