{"id":"EEF-CVE-2026-42794","summary":"Reflected XSS via backslash bypass in GraphiQL js_escape in absinthe_plug","details":"## Summary\n\nImproper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface.\n\n`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.\n\nThis issue affects absinthe_plug: from 1.1.1 before 1.5.10.\n\n## Configurations\n\nThe 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.","aliases":["CVE-2026-42794","GHSA-c62g-j346-39v5"],"modified":"2026-11-25T17:23:12.896146133Z","published":"2026-05-08T15:42:40.706Z","database_specific":{"capec_ids":["CAPEC-86"],"cpe_ids":["cpe:2.3:a:absinthe-graphql:absinthe_plug:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-79"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json"},"references":[{"type":"ADVISORY","url":"https://github.com/absinthe-graphql/absinthe_plug/issues/275"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-42794.html"},{"type":"WEB","url":"https://github.com/absinthe-graphql/absinthe_plug/commit/26241817cb4b9be4de3f5972c5fba3d36de3d713"},{"type":"FIX","url":"https://github.com/absinthe-graphql/absinthe_plug/commit/23a0d5658d32420086711adf4ce8f05febb09963"},{"type":"PACKAGE","url":"https://hex.pm/packages/absinthe_plug"}],"affected":[{"package":{"name":"absinthe_plug","ecosystem":"Hex","purl":"pkg:hex/absinthe_plug"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.1"},{"fixed":"1.5.10"}]}],"versions":["1.1.1","1.1.2","1.1.3","1.2.0","1.2.0-alpha0","1.2.0-rc.0","1.2.2","1.2.3","1.2.4","1.2.5","1.3.0","1.3.0-alpha.0","1.3.0-beta.0","1.3.0-beta.1","1.3.0-rc.0","1.3.0-rc.1","1.3.1","1.4.0","1.4.0-beta.1","1.4.0-beta.2","1.4.0-rc.0","1.4.0-rc.1","1.4.0-rc.2","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.5.0","1.5.0-alpha.0","1.5.0-rc.0","1.5.0-rc.1","1.5.0-rc.2","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","1.5.6","1.5.7","1.5.8","1.5.9"],"ecosystem_specific":{"modules":["'Elixir.Absinthe.Plug.GraphiQL'"],"program_files":["lib/absinthe/plug/graphiql.ex"],"program_routines":["'Elixir.Absinthe.Plug.GraphiQL':js_escape/1"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json"},"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Absinthe.Plug.GraphiQL'"],"program_files":["lib/absinthe/plug/graphiql.ex"],"program_routines":["'Elixir.Absinthe.Plug.GraphiQL':js_escape/1"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-42794.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/absinthe-graphql/absinthe_plug","events":[{"introduced":"26241817cb4b9be4de3f5972c5fba3d36de3d713"},{"fixed":"23a0d5658d32420086711adf4ce8f05febb09963"}]}],"database_specific":{"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Absinthe.Plug.GraphiQL'"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-42794.json","program_files":["lib/absinthe/plug/graphiql.ex"],"program_routines":["'Elixir.Absinthe.Plug.GraphiQL':js_escape/1"]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"40826d","type":"FINDER"},{"name":"Bryan A. Enders","type":"FINDER"},{"name":"Leandro Moreno","type":"REMEDIATION_DEVELOPER"},{"name":"Ben Wilson","type":"REMEDIATION_REVIEWER"}]}