CVE-2024-40111: Automad · Cross-site Scripting
Affects AutomadSource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 23 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubw3bn00b3r/Automadpkg:github/w3bn00b3r/AutomadOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-40111, organizations should first verify if they are running Automad 2.0.0-alpha.4 or similar vulnerable versions and upgrade to a patched version once available. In the absence of an official patch, administrators should implement strict input validation and output encoding on all user-supplied content, especially within template bodies, to neutralize potentially malicious scripts. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. Limit user privileges to the minimum necessary to reduce the risk of high-privilege attackers injecting malicious code. Regularly audit and sanitize existing content stored in the CMS to detect and remove any injected scripts. Additionally, monitor web traffic and logs for unusual activity indicative of XSS exploitation attempts. Educate users and administrators about the risks of XSS and encourage cautious behavior when interacting with user-generated content. Finally, consider deploying web application firewalls (WAFs) with rules designed to detect and block XSS payloads targeting Automad CMS.
Description
A persistent (stored) cross-site scripting (XSS) vulnerability has been identified in Automad 2.0.0-alpha.4. This vulnerability enables an attacker to inject malicious JavaScript code into the template body. The injected code is stored within the flat file CMS and is executed in the browser of any user visiting the forum.