CVE-2026-42794
JSON

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 packageVersionsReported by
absinthe_plugfrom 1.1.1 before 1.5.10CVE List
absinthe-graphql/absinthe_plugfrom 26241817cb4b9be4de3f5972c5fba3d36de3d713 before 23a0d5658d32420086711adf4ce8f05febb09963CVE List
absinthe_plug (Hex)from 1.2.0 up to 1.5.9, from 1.1.1 before 1.5.10GitHub Advisory Database, Erlang Ecosystem Foundation
https://github.com/absinthe-graphql/absinthe_plugfrom 26241817cb4b9be4de3f5972c5fba3d36de3d713 before 23a0d5658d32420086711adf4ce8f05febb09963Erlang Ecosystem Foundation
absinthe-graphql absinthe.plugfrom 1.2.0 before 1.5.10NVD

All scores

EEF2.3low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHub6.1low CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHublow CVSS:4.0CVSS: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 FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

Sources

SourceRecordLicence
CVE ListCVE-2026-42794 changed 2026-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-c62g-j346-39v5 changed 2026-06-08CC-BY-4.0
Erlang Ecosystem FoundationEEF-CVE-2026-42794 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-42794 changed 2026-11-20Public domain