# CVE-2026-42548: Flight: Reflected XSS via unvalidated JSONP callback in Flight::jsonp()

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 36% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T21:34:15.000Z
- Modified: 2026-10-26T14:10:00.130Z
- Also known as: GHSA-fcx8-ph5r-mxr4
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- flightphp core: < 3.18.1
- flightphp/core (Packagist): before 3.18.1

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/flightphp/core/security/advisories/GHSA-fcx8-ph5r-mxr4> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42548> (advisory)
- <https://github.com/flightphp/core> (package)

## Sources

- CVE List: [CVE-2026-42548](https://www.cve.org/CVERecord?id=CVE-2026-42548), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-fcx8-ph5r-mxr4](https://github.com/advisories/GHSA-fcx8-ph5r-mxr4), CC-BY-4.0, modified 2026-05-14
- NVD: [CVE-2026-42548](https://nvd.nist.gov/vuln/detail/CVE-2026-42548), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42548 · Whole record: https://cve.day/CVE-2026-42548.json · Rebuilt by cve.day 2026-11-25T22:59:21.656Z
