CVE-2026-42794 Details
Description
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface. 'Elixir.Absinthe.Plug.GraphiQL':js_escape/1 in lib/absinthe/plug/graphiql.ex escapes single quotes and newlines in the query GET parameter before embedding it in an inline JavaScript string, but does not escape backslashes. An attacker can bypass the escaping by prefixing a quote with a backslash (e.g. \'), breaking out of the string context and executing arbitrary JavaScript in the victim's browser. This issue affects absinthe_plug: from 1.2.0 before 1.5.10.
A reflected cross-site scripting vulnerability has been identified in the Absinthe-GraphQL library, specifically within the absinthe_plug component, starting from version 1.2.0. The issue arises in the GraphiQL interface, where the js_escape function fails to properly escape backslashes in the query GET parameter. This oversight allows attackers to manipulate the input, breaking out of a JavaScript string context and executing arbitrary scripts in the user's browser.
Users can update to the latest version of absinthe_plug, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/absinthe-graphql/absinthe_plug/issues/275 | CISA-ADP | Issue Tracking |
| https://cna.erlef.org/cves/CVE-2026-42794.html | EEF | Third Party Advisory |
| https://github.com/absinthe-graphql/absinthe_plug/commit/23a0d5658d32420086711adf4ce8f05febb09963 | EEF | Patch |
| https://github.com/absinthe-graphql/absinthe_plug/issues/275 | EEF | Issue Tracking |
| https://osv.dev/vulnerability/EEF-CVE-2026-42794 | EEF | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | EEF |
Affected Products
| Product | Versions |
|---|---|
| absinthe-graphql absinthe.plug | >= 1.2.0, < 1.5.10 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 21, 2026 | Initial Analysis | [email protected] |
| May 16, 2026 | CVE Modified | EEF |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | CVE Modified | EEF |
| May 8, 2026 | New CVE Received | EEF |