{"id":"CVE-2026-33525","aliases":["CVE-2026-33525","GHSA-gmfg-3v4q-9qr4","GO-2026-4818"],"related":[],"kind":"vulnerability","state":"published","title":"Authelia: Improper Neutralization of Input During Web Page Generation Leads to Potential Cross-site Scripting","summary":"Authelia is an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) for applications via a web portal. In version 4.39.15, an attacker may potentially be able to inject javascript into the Authelia login page if several conditions are met simultaneously. Unless both the `script-src` and `connect-src` directives have been modified it's almost impossible for this to have a meaningful impact. However if both of these are and they are done so without consideration to their potential impact; there is a are situations where this vulnerability could be exploited. This is caused to the lack of neutralization of the `langauge` cookie value when rendering the HTML template. This vulnerability is likely difficult to discover though fingerprinting due to the way Authelia is designed but it should not be considered impossible. The additional requirement to identify the secondary application is however likely to be significantly harder to identify along side this, but also likely easier to fingerprint. Users should upgrade to 4.39.16 or downgrade to 4.39.14 to mitigate the issue. The overwhelming majority of installations will not be affected and no workarounds are necessary. The default value for the Content Security Policy makes exploiting this weakness completely impossible. It's only possible via the deliberate removal of the Content Security Policy or deliberate inclusion of clearly noted unsafe policies.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authelia is an open-source authentication and authorization server providing two-factor authentication and single sign-on (SSO) for applications via a web portal. In version 4.39.15, an attacker may potentially be able to inject javascript into the Authelia login page if several conditions are met simultaneously. Unless both the `script-src` and `connect-src` directives have been modified it's almost impossible for this to have a meaningful impact. However if both of these are and they are done so without consideration to their potential impact; there is a are situations where this vulnerability could be exploited. This is caused to the lack of neutralization of the `langauge` cookie value when rendering the HTML template. This vulnerability is likely difficult to discover though fingerprinting due to the way Authelia is designed but it should not be considered impossible. The additional requirement to identify the secondary application is however likely to be significantly harder to identify along side this, but also likely easier to fingerprint. Users should upgrade to 4.39.16 or downgrade to 4.39.14 to mitigate the issue. The overwhelming majority of installations will not be affected and no workarounds are necessary. The default value for the Content Security Policy makes exploiting this weakness completely impossible. It's only possible via the deliberate removal of the Content Security Policy or deliberate inclusion of clearly noted unsafe policies.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n**Official Weighted Severity Rating:** Low\n\nThis exploit is very unlikely to be the case for most users as it requires configuration of the Content Security Policy template value. Below represents a safe value, **_any other value_** other than unconfigured should be **_very carefully evaluated_** regardless of the fix.\n\n```yaml\nserver:\n  headers:\n    csp_template: ''\n```\n\n```env\nAUTHELIA_SERVER_HEADERS_CSP_TEMPLATE=\n```\n\nProvided the following conditions are met:\n\n1. The Content Security Policy:\n    1. Has been disabled or modified from the entirely safe default value; and\n    2. Has been completely disabled by the Administrator by omitting the header explicitly at the proxy (worst practice); or\n    3. Has been effectively disabled by modifying `script-src` allowing unsafe inline scripts rather than using hashes AND effectively disabled by modifying `connect-src` allowing connections to arbitrary websites.\n2. Authelia is being hosted on a domain that has other applications that can write to the cookie for the Authelia domain.\n3. One of the other applications noted in 2 has an vulnerability that can be exploited to execute malicious javascript with similar requirements to 1.\n4. The attacker can exploit the javascript in 3 to delete the existing `language` cookie scoped to the fully qualified domain name of Authelia with the same site value of `strict` (which is not possible in most scenarios unless the application in 3 has the exact same domain or a subdomain of the Authelia domain).\n5. The attacker can exploit the javascript in 3 to write a new `language` cookie scoped for a domain that Authelia is sent cookies for.\n6. The attacker can get a user to meet the conditions required to execute the javascript in 3.\n7. You are running Authelia 4.39.15.\n\nAn attacker may potentially be able to inject javascript into the Authelia login page. Unless both the `script-src` and `connect-src` directives have been modified it's almost impossible for this to have a meaningful impact. However if both of these are and they are done so without consideration to their potential impact; there is a are situations where this vulnerability could be exploited.\n\nThis is caused to the lack of neutralization of the `langauge` cookie value when rendering the HTML template.\n\nThis vulnerability is likely difficult to discover though fingerprinting due to the way Authelia is designed but it should not be considered impossible. The additional requirement to identify the secondary application is however likely to be significantly harder to identify along side this, but also likely easier to fingerprint.\n\n### Patches\n\nUpgrade to 4.39.16 or Downgrade to 4.39.14.\n\n### Proof of Concept\n\nNo current proof of concept exists that does not require manual manipulation of the browser which is effectively a local attack where all privileges have been compromised without the need for this attack vector (i.e. installation of userscripts or a browser plugin which would be able to compromise any website or web app). There is a decent chance one will exist or certain conditions exist that could lead to the vulnerability being exploitable.\n\nDiscovery of this flaw has prompted an deliberate evaluation of any other potential flaws similar to this which did not yield any results, as well as a deliberate evaluation of best practices in this area which has resulted in a minor tweak to hardening measures. These additional hardening measures should not have any effect (explicit definition of the `script-src` and `connect-src` policies, which are the same value as `default` was previously), but it should theoretically prevent an accidental change in the future degrading the existing security layers we implement.\n\n### Workarounds\n\nThe overwhelming majority of installations will not be affected and no workarounds are necessary. The default value for the Content Security Policy makes exploiting this weakness completely impossible. It's only possible via the deliberate removal of the Content Security Policy or deliberate inclusion of clearly noted unsafe policies.\n\n#### Use the default Content Security Policy\n\nThe default Content Security Policy is completely secure and prevents any third party javascript the browser evaluates against it.\n\n```yaml\nserver:\n  headers:\n    csp_template: ''\n```\n\nUsing a custom Content Security Policy is a very advanced choice that requires specialist knowledge. The use of `unsafe-inline`, `unsafe-eval`, `unsafe-hashes`, etc. are particularly problematic as they effectively allow arbitrary script execution (if a security policy includes an option that says `unsafe` it's probably a good indication you should not use it).\n\n#### Upgrade or Downgrade\n\nBoth the next version and previous version of Authelia do not have this bug.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Authelia: Improper Neutralization of Input During Web Page Generation Leads to Potential Cross-site Scripting in github.com/authelia/authelia","format":"markdown","source":"go"},{"lang":"es","text":"Authelia es un servidor de autenticación y autorización de código abierto que proporciona autenticación de dos factores e inicio de sesión único (SSO) para aplicaciones a través de un portal web. En la versión 4.39.15, un atacante podría potencialmente inyectar javascript en la página de inicio de sesión de Authelia si se cumplen varias condiciones simultáneamente. A menos que se hayan modificado las directivas 'script-src' y 'connect-src', es casi imposible que esto tenga un impacto significativo. Sin embargo, si ambas lo están y se hacen sin considerar su impacto potencial; hay situaciones en las que esta vulnerabilidad podría ser explotada. Esto se debe a la falta de neutralización del valor de la cookie 'langauge' al renderizar la plantilla HTML. Es probable que esta vulnerabilidad sea difícil de descubrir mediante la toma de huellas digitales debido a la forma en que está diseñada Authelia, pero no debe considerarse imposible. El requisito adicional para identificar la aplicación secundaria, sin embargo, es probable que sea significativamente más difícil de identificar junto con esto, pero también probablemente más fácil de identificar mediante la toma de huellas digitales. Los usuarios deben actualizar a la versión 4.39.16 o degradar a la 4.39.14 para mitigar el problema. La abrumadora mayoría de las instalaciones no se verán afectadas y no son necesarias soluciones alternativas. El valor predeterminado de la Política de Seguridad de Contenido (Content Security Policy) hace que explotar esta debilidad sea completamente imposible. Solo es posible mediante la eliminación deliberada de la Política de Seguridad de Contenido o la inclusión deliberada de políticas inseguras claramente señaladas.","source":"nvd"}],"published":"2026-03-24T16:33:03.000Z","modified":"2026-06-17T10:37:39.070Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:U","score":0.5,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:U","score":0.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:U/S:N/AU:Y/R:U/V:D/RE:L/U:Clear","rating":"LOW"},{"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":[{"version":"= 4.39.15","status":"affected"}],"vendor":"authelia","product":"authelia","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.39.15","status":"affected","fixed":"4.39.16"}],"ecosystem":"Go","package":"github.com/authelia/authelia/v4","purl":"pkg:golang/github.com/authelia/authelia/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/authelia/authelia","purl":"pkg:golang/github.com/authelia/authelia","source":"go"},{"ranges":[{"type":"semver","introduced":"4.39.15","status":"affected","fixed":"4.39.16"}],"ecosystem":"Go","package":"github.com/authelia/authelia/v4","purl":"pkg:golang/github.com/authelia/authelia/v4","source":"go"},{"ranges":[{"status":"affected","version":"4.39.15"}],"vendor":"authelia","product":"authelia","cpe":"cpe:2.3:a:authelia:authelia:4.39.15:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/authelia/authelia/security/advisories/GHSA-gmfg-3v4q-9qr4","tags":["advisory","exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33525","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/authelia/authelia","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-30T13:59:38.875Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33525","url":"https://www.cve.org/CVERecord?id=CVE-2026-33525","licence":"CVE Terms of Use","modified":"2026-03-30T14:55:38.565Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmfg-3v4q-9qr4","url":"https://github.com/advisories/GHSA-gmfg-3v4q-9qr4","licence":"CC-BY-4.0","modified":"2026-03-30T14:18:57.332Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4818","url":"https://pkg.go.dev/vuln/GO-2026-4818","licence":"CC-BY-4.0","modified":"2026-03-26T21:03:53.896Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33525","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33525","licence":"Public domain","modified":"2026-06-17T10:37:39.070Z"}],"updatedAt":"2026-11-25T22:59:17.121Z","epss":{"score":0.00222,"percentile":0.13658,"date":"2026-12-01T12:00:22.000Z"}}