Descrizione
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.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.1.
Versioni da aggiornare
- Absinthe-Graphql Absinthe.Plug: vulnerabili le versioni dalla
1.2.0precedenti alla1.5.10→ aggiornare alla1.5.10o successiva.
Patch e advisory
- Patch: github.com/absinthe-graphql/absinthe_plug/commi…
- Advisory di terze parti: cna.erlef.org/cves/CVE-2026-42794.html
- Advisory di terze parti: osv.dev/vulnerability/EEF-CVE-2026-42794
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare una Content-Security-Policy restrittiva e regole WAF contro XSS; invitare gli utenti a non aprire link sospetti verso l'applicazione.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Absinthe-Graphql | Absinthe.Plug | ≥ 1.2.0 < 1.5.10 | 1.5.10 |
Riferimenti
- Patchhttps://github.com/absinthe-graphql/absinthe_plug/commit/23a0d5658d32420086711adf4ce8f05febb09963
- Advisory di terze partihttps://cna.erlef.org/cves/CVE-2026-42794.html
- Advisory di terze partihttps://osv.dev/vulnerability/EEF-CVE-2026-42794
- Riferimentohttps://github.com/absinthe-graphql/absinthe_plug/commit/26241817cb4b9be4de3f5972c5fba3d36de3d713
- Riferimentohttps://github.com/absinthe-graphql/absinthe_plug/issues/275
- Riferimentohttps://github.com/absinthe-graphql/absinthe_plug/issues/275