{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:absinthe-graphql:absinthe_plug:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Absinthe.Plug.GraphiQL'"],"packageName":"absinthe_plug","packageURL":"pkg:hex/absinthe_plug","product":"absinthe_plug","programFiles":["lib/absinthe/plug/graphiql.ex"],"programRoutines":[{"name":"'Elixir.Absinthe.Plug.GraphiQL':js_escape/1"}],"repo":"https://github.com/absinthe-graphql/absinthe_plug","vendor":"absinthe-graphql","versions":[{"lessThan":"*","status":"affected","version":"1.2.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:absinthe-graphql:absinthe_plug:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Absinthe.Plug.GraphiQL'"],"packageName":"absinthe-graphql/absinthe_plug","packageURL":"pkg:github/absinthe-graphql/absinthe_plug","product":"absinthe_plug","programFiles":["lib/absinthe/plug/graphiql.ex"],"programRoutines":[{"name":"'Elixir.Absinthe.Plug.GraphiQL':js_escape/1"}],"repo":"https://github.com/absinthe-graphql/absinthe_plug","vendor":"absinthe-graphql","versions":[{"lessThan":"23a0d5658d32420086711adf4ce8f05febb09963","status":"affected","version":"26241817cb4b9be4de3f5972c5fba3d36de3d713","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The application must mount <tt>Absinthe.Plug.GraphiQL</tt> 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."}],"value":"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."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:absinthe-graphql:absinthe_plug:*:*:*:*:*:*:*:*","versionStartIncluding":"1.2.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"40826d"},{"lang":"en","type":"finder","value":"Bryan A. Enders"},{"lang":"en","type":"remediation developer","value":"Leandro Moreno"},{"lang":"en","type":"remediation reviewer","value":"Ben Wilson"}],"descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in absinthe-graphql absinthe_plug allows reflected cross-site scripting via the GraphiQL interface.<p><tt>'Elixir.Absinthe.Plug.GraphiQL':js_escape/1</tt> in <tt>lib/absinthe/plug/graphiql.ex</tt> escapes single quotes and newlines in the <tt>query</tt> 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. <tt>\\'</tt>), breaking out of the string context and executing arbitrary JavaScript in the victim's browser.</p><p>This issue affects absinthe_plug: from 1.2.0.</p>"}],"value":"Improper 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'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.\n\nThis issue affects absinthe_plug: from 1.2.0."}],"impacts":[{"capecId":"CAPEC-86","descriptions":[{"lang":"en","value":"CAPEC-86 XSS Using HTTP Query Strings"}]}],"metrics":[{"cvssV4_0":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-05-08T15:51:42.887Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/absinthe-graphql/absinthe_plug/issues/275"},{"tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-42794.html"},{"tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42794"},{"tags":["patch"],"url":"https://github.com/absinthe-graphql/absinthe_plug/commit/23a0d5658d32420086711adf4ce8f05febb09963"}],"source":{"discovery":"EXTERNAL"},"title":"Reflected XSS via backslash bypass in GraphiQL js_escape in absinthe_plug","x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-42794","datePublished":"2026-05-08T15:42:40.706Z","dateReserved":"2026-04-29T18:06:33.251Z","dateUpdated":"2026-05-08T15:51:42.887Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}