CVE-2026-33525: Authelia Cross-Site Scripting Vulnerability
LOWCVE-2026-33525 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Authelia libraries in the Go ecosystem. The issue involves improper neutralization of input during web page generation leads to potential cross-site scripting. Remediation is available by upgrading affected packages to version 4.39.16.
CVE-2026-33525 at a Glance
How to Fix CVE-2026-33525
To remediate this vulnerability, upgrade all affected Authelia dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/authelia/authelia/v4 to 4.39.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/authelia/authelia/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-33525, inspect your project dependencies for Authelia:
inspect dependencies for github.com/authelia/authelia/v4
Analyze the terminal output to locate any version of Authelia in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.39.16), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Authelia, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-33525 Affected Authelia Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/authelia/authelia/v4
|
Go |
≥ 4.39.15
< 4.39.16
All 1 versions
4.39.15
|
4.39.16
|
References
Frequently Asked Questions
What is CVE-2026-33525?
Which Authelia versions are affected?
What version fixes CVE-2026-33525?
Is github.com/authelia/authelia/v4 affected?
What CWE is associated with CVE-2026-33525?
How can I check Go dependencies for CVE-2026-33525?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gmfg-3v4q-9qr4",
"modified" : "2026-03-30T14:07:52Z",
"published" : "2026-03-24T16:33:03Z",
"aliases" : [ "CVE-2026-33525" ],
"summary" : "Authelia: Improper Neutralization of Input During Web Page Generation Leads to Potential Cross-site Scripting",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/authelia/authelia/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.39.15"
}, {
"fixed" : "4.39.16"
} ]
} ],
"versions" : [ "4.39.15" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/authelia/authelia/security/advisories/GHSA-gmfg-3v4q-9qr4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33525"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/authelia/authelia"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-24T16:33:03Z",
"nvd_published_at" : "2026-03-26T20:16:14Z"
}
}