CVE-2024-40111: Automad/automad Cross-Site Scripting Vulnerability
MODERATECVE-2024-40111 is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Automad/automad libraries in the Packagist ecosystem. The issue involves automad cross-site scripting vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2024-40111 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-40111
To remediate this vulnerability, upgrade all affected Automad/automad 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 automad/automad to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for automad/automad
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-40111, inspect your project dependencies for Automad/automad:
inspect dependencies for automad/automad
Analyze the terminal output to locate any version of Automad/automad in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Automad/automad, 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-2024-40111 Affected Automad/automad Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
automad/automad
|
Packagist |
≤ 2.0.0-alpha.4
|
|
References
Frequently Asked Questions
What is CVE-2024-40111?
Which Automad/automad versions are affected?
What version fixes CVE-2024-40111?
Is automad/automad affected?
What is the CVSS score of CVE-2024-40111?
What CWE is associated with CVE-2024-40111?
How can I check Packagist dependencies for CVE-2024-40111?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g8h2-j9pm-4xx2",
"modified" : "2024-08-26T21:26:00Z",
"published" : "2024-08-23T21:30:42Z",
"withdrawn" : "2024-08-26T15:30:15Z",
"aliases" : [ "CVE-2024-40111" ],
"summary" : "Automad Cross-site Scripting vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "automad/automad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.0-alpha.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-40111"
}, {
"type" : "WEB",
"url" : "https://drive.google.com/file/d/10BVQKYo2H1-Nx3FOGteL2xww4lbZ3xlS/view?usp=sharing"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/marcantondahmen/automad"
}, {
"type" : "WEB",
"url" : "https://github.com/w3bn00b3r/Stored-Cross-Site-Scripting-XSS---Automad-2.0.0-alpha.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-23T22:52:12Z",
"nvd_published_at" : "2024-08-23T21:15:07Z"
}
}