2.3low
Reflected XSS via backslash bypass in GraphiQL js_escape in absinthe_plug
- Severity
- 2.3low CVSS:4.0 by EEF
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- GHSA-c62g-j346-39v5EEF-CVE-2026-42794
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. 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.1.1 before 1.5.10.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| absinthe_plug | from 1.1.1 before 1.5.10 | CVE List |
| absinthe-graphql/absinthe_plug | from 26241817cb4b9be4de3f5972c5fba3d36de3d713 before 23a0d5658d32420086711adf4ce8f05febb09963 | CVE List |
| absinthe_plug (Hex) | from 1.2.0 up to 1.5.9, from 1.1.1 before 1.5.10 | GitHub Advisory Database, Erlang Ecosystem Foundation |
| https://github.com/absinthe-graphql/absinthe_plug | from 26241817cb4b9be4de3f5972c5fba3d36de3d713 before 23a0d5658d32420086711adf4ce8f05febb09963 | Erlang Ecosystem Foundation |
| absinthe-graphql absinthe.plug | from 1.2.0 before 1.5.10 | NVD |
All scores
| EEF | 2.3low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | 6.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface. 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.1.1 before 1.5.10.
GitHub Advisory Database
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.
Erlang Ecosystem Foundation
Summary
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface.
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.1.1 before 1.5.10.
Configurations
The application must mount Absinthe.Plug.GraphiQL on a route that is reachable by untrusted users. The GraphiQL interface is a developer tool and is typically disabled or restricted in production deployments.
NVD (es)
Vulnerabilidad de Neutralización Incorrecta de la Entrada Durante la Generación de Páginas Web (XSS) en absinthe-graphql absinthe_plug permite cross-site scripting reflejado a través de la interfaz GraphiQL. ’Elixir.Absinthe.Plug.GraphiQL’:js_escape/1 en lib/absinthe/plug/graphiql.ex escapa comillas simples y saltos de línea en el parámetro GET de la consulta antes de incrustarlo en una cadena JavaScript en línea, pero no escapa barras invertidas. Un atacante puede eludir el escape prefijando una comilla con una barra invertida (ej. \’), saliendo del contexto de la cadena y ejecutando JavaScript arbitrario en el navegador de la víctima. Este problema afecta a absinthe_plug: desde 1.2.0.
References
| https://github.com/absinthe-graphql/absinthe_plug/issues/275 | advisory, exploit, issue-tracking, vendor-advisory, web | |
| https://cna.erlef.org/cves/CVE-2026-42794.html | related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-42794 | related, third-party-advisory, web | |
| https://github.com/absinthe-graphql/absinthe_plug/commit/26241817cb4b9be4de3f5972c5fba3d36de3d713 | related, web | |
| https://github.com/absinthe-graphql/absinthe_plug/commit/23a0d5658d32420086711adf4ce8f05febb09963 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42794 | advisory | |
| https://github.com/absinthe-graphql/absinthe_plug | package | |
| https://hex.pm/packages/absinthe_plug | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42794 changed 2026-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c62g-j346-39v5 changed 2026-06-08 | CC-BY-4.0 |
| Erlang Ecosystem Foundation | EEF-CVE-2026-42794 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-42794 changed 2026-11-20 | Public domain |