{"id":"CVE-2026-66296","aliases":["CVE-2026-66296","EEF-CVE-2026-66296","GHSA-h7xw-x8wr-xpcc"],"related":[],"kind":"vulnerability","state":"published","title":"Reflected XSS in oaskit's default HTML error handler","summary":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in lud oaskit allows reflected cross-site scripting via the default HTML error handler.\n\nOaskit.ErrorHandler.Default.format_reason/4 and Oaskit.ErrorHandler.Default.reason_to_html/1 in lib/oaskit/error_handler/default.ex render request-validation failures as an HTML page whenever the request's Accept header contains html, interpolating request-controlled strings into that page without HTML escaping. The unescaped values are object keys taken from a request body or from an object or deepObject query parameter, which appear in the JSON Schema error's instance path when a schema rejects them (for example under additionalProperties: false), and the raw Content-Type header, reflected in unsupported-media-type errors when it fails to parse.\n\nBecause browsers send Accept: text/html on ordinary top-level navigation, a crafted GET link is sufficient to trigger the error page; no form submission, custom Content-Type, or attacker-controlled script on the victim's side is required. A payload such as filter[</code></h2><script>alert(document.domain)</script>]=x terminates the enclosing markup and the injected script executes in the origin of the application using oaskit, giving it access to that origin's cookies, session, and same-origin responses.\n\nBoth HTML error rendering and the vulnerable handler are enabled by default: Oaskit.Plugs.ValidateRequest defaults :html_errors to true and :error_handler to Oaskit.ErrorHandler.Default, so applications following the documented usage are affected without any opt-in.\n\nThis issue affects oaskit: from 0.1.0 before 0.14.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in lud oaskit allows reflected cross-site scripting via the default HTML error handler.\n\nOaskit.ErrorHandler.Default.format_reason/4 and Oaskit.ErrorHandler.Default.reason_to_html/1 in lib/oaskit/error_handler/default.ex render request-validation failures as an HTML page whenever the request's Accept header contains html, interpolating request-controlled strings into that page without HTML escaping. The unescaped values are object keys taken from a request body or from an object or deepObject query parameter, which appear in the JSON Schema error's instance path when a schema rejects them (for example under additionalProperties: false), and the raw Content-Type header, reflected in unsupported-media-type errors when it fails to parse.\n\nBecause browsers send Accept: text/html on ordinary top-level navigation, a crafted GET link is sufficient to trigger the error page; no form submission, custom Content-Type, or attacker-controlled script on the victim's side is required. A payload such as filter[</code></h2><script>alert(document.domain)</script>]=x terminates the enclosing markup and the injected script executes in the origin of the application using oaskit, giving it access to that origin's cookies, session, and same-origin responses.\n\nBoth HTML error rendering and the vulnerable handler are enabled by default: Oaskit.Plugs.ValidateRequest defaults :html_errors to true and :error_handler to Oaskit.ErrorHandler.Default, so applications following the documented usage are affected without any opt-in.\n\nThis issue affects oaskit: from 0.1.0 before 0.14.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of Input During Web Page Generation (XSS) vulnerability in lud oaskit allows reflected cross-site scripting via the default HTML error handler.\n\n`Oaskit.ErrorHandler.Default.format_reason/4` and `Oaskit.ErrorHandler.Default.reason_to_html/1` in `lib/oaskit/error_handler/default.ex` render request-validation failures as an HTML page whenever the request's `Accept` header contains `html`, interpolating request-controlled strings into that page without HTML escaping. The unescaped values are object keys taken from a request body or from an object or `deepObject` query parameter, which appear in the JSON Schema error's instance path when a schema rejects them (for example under `additionalProperties: false`), and the raw `Content-Type` header, reflected in unsupported-media-type errors when it fails to parse.\n\nBecause browsers send `Accept: text/html` on ordinary top-level navigation, a crafted GET link is sufficient to trigger the error page; no form submission, custom `Content-Type`, or attacker-controlled script on the victim's side is required. A payload such as `filter[</code></h2><script>alert(document.domain)</script>]=x` terminates the enclosing markup and the injected script executes in the origin of the application using oaskit, giving it access to that origin's cookies, session, and same-origin responses.\n\nBoth HTML error rendering and the vulnerable handler are enabled by default: `Oaskit.Plugs.ValidateRequest` defaults `:html_errors` to `true` and `:error_handler` to `Oaskit.ErrorHandler.Default`, so applications following the documented usage are affected without any opt-in.\n\nThis issue affects oaskit: from 0.1.0 before 0.14.1.\n\n## Workarounds\n\nDisable HTML error rendering so that validation failures are returned as JSON only:\n\n```elixir\nplug Oaskit.Plugs.ValidateRequest, html_errors: false\n```\n\nThis prevents the vulnerable HTML page from being rendered at all, on any oaskit version. Alternatively, configure a custom `:error_handler` that does not emit HTML built from request-derived values.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de Neutralización Incorrecta de Entrada Durante la Generación de Páginas Web (XSS) en lud oaskit permite cross-site scripting reflejado a través del gestor de errores HTML predeterminado.\n\nOaskit.ErrorHandler.Default.format_reason/4 y Oaskit.ErrorHandler.Default.reason_to_html/1 en lib/oaskit/error_handler/default.ex renderizan fallos de validación de solicitudes como una página HTML siempre que el encabezado Accept de la solicitud contenga html, interpolando cadenas controladas por la solicitud en esa página sin escape HTML. Los valores sin escape son claves de objeto tomadas de un cuerpo de solicitud o de un parámetro de consulta de tipo object o deepObject, que aparecen en la ruta de instancia del error de JSON Schema cuando un esquema los rechaza (por ejemplo, bajo additionalProperties: false), y el encabezado Content-Type sin procesar, reflejado en errores de tipo de medio no compatible (unsupported-media-type) cuando falla al analizarse.\n\nDebido a que los navegadores envían Accept: text/html en la navegación de nivel superior ordinaria, un enlace GET manipulado es suficiente para activar la página de error; no se requiere el envío de formularios, un Content-Type personalizado o un script controlado por el atacante en el lado de la víctima. Una carga útil como filter[[/code][/h2][script_tag]alert(document.domain)[/script]]=x termina el marcado envolvente y el script inyectado se ejecuta en el origen de la aplicación que utiliza oaskit, dándole acceso a las cookies, la sesión y las respuestas del mismo origen de ese origen.\n\nTanto la renderización de errores HTML como el gestor vulnerable están habilitados por defecto: Oaskit.Plugs.ValidateRequest establece por defecto :html_errors en true y :error_handler en Oaskit.ErrorHandler.Default, por lo que las aplicaciones que siguen el uso documentado se ven afectadas sin necesidad de una activación explícita.\n\nEste problema afecta a oaskit: desde 0.1.0 antes de 0.14.1.","source":"nvd"}],"published":"2026-08-03T19:04:30.556Z","modified":"2026-11-26T17:23:03.394Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.14.1","status":"affected"}],"vendor":"lud","product":"oaskit","package":"oaskit","cpe":"cpe:2.3:a:lud:oaskit:*:*:*:*:*:elixir:*:*","repo":"https://github.com/lud/oaskit","source":"cvelist"},{"ranges":[{"type":"git","introduced":"552de8ca0ff60617bea58bcafa451892d61a161c","fixed":"b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1","status":"affected"}],"vendor":"lud","product":"oaskit","package":"lud/oaskit","cpe":"cpe:2.3:a:lud:oaskit:*:*:*:*:*:elixir:*:*","repo":"https://github.com/lud/oaskit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.14.1"}],"ecosystem":"Hex","package":"oaskit","purl":"pkg:hex/oaskit","source":"eef"},{"ranges":[{"type":"git","introduced":"552de8ca0ff60617bea58bcafa451892d61a161c","status":"affected","fixed":"b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1"}],"repo":"https://github.com/lud/oaskit","source":"eef"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.14.1"}],"vendor":"lud","product":"oaskit","cpe":"cpe:2.3:a:lud:oaskit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/lud/oaskit/security/advisories/GHSA-h7xw-x8wr-xpcc","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66296.html","tags":["patch","related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66296","tags":["patch","related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/lud/oaskit/commit/552de8ca0ff60617bea58bcafa451892d61a161c","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/lud/oaskit/commit/b70c6b2eaf0b11bdd0bbb21b8a87dbb3d46918a1","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/oaskit","tags":["package"],"sources":["eef"]}],"credits":["Ludovic Dem","Jonatan Männchen / EEF"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-03T19:50:03.665Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66296","url":"https://www.cve.org/CVERecord?id=CVE-2026-66296","licence":"CVE Terms of Use","modified":"2026-11-19T08:47:52.362Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-66296","url":"https://osv.dev/vulnerability/EEF-CVE-2026-66296","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:03.394Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66296","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66296","licence":"Public domain","modified":"2026-11-19T09:17:49.310Z"}],"updatedAt":"2026-11-26T17:37:10.614Z","epss":{"score":0.00244,"percentile":0.16657,"date":"2026-12-01T12:00:22.000Z"}}