CVE-2026-25491: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
CVE-2026-25491 is a stored cross-site scripting (XSS) vulnerability in CraftCMS versions from 5. 0. 0-RC1 up to 5. 8. 21. The vulnerability arises because Entry Type names are not properly sanitized when displayed in the Entry Types list, allowing malicious scripts to be stored and executed in the context of the CMS interface. This flaw requires authenticated users with privileges to create or modify Entry Types and some user interaction to trigger the payload. The vulnerability has a low CVSS score of 1. 9 and is fixed in version 5. 8.
AI Analysis
Technical Summary
CVE-2026-25491 is a stored cross-site scripting (XSS) vulnerability classified under CWE-79 affecting CraftCMS, a popular content management system used for building digital experiences. The vulnerability exists in versions from 5.0.0-RC1 through 5.8.21 due to improper neutralization of input during web page generation. Specifically, Entry Type names are not sanitized when rendered in the Entry Types list, allowing an attacker with authenticated access and sufficient privileges to inject malicious JavaScript code. This stored XSS can execute in the context of the CMS administrative interface, potentially enabling attackers to hijack user sessions, perform actions on behalf of other users, or escalate privileges within the CMS environment. The vulnerability requires an attacker to have authenticated access with permission to create or modify Entry Types, and some user interaction is needed to trigger the malicious script. The CVSS 4.0 base score is 1.9, reflecting low severity due to the requirement for privileges and user interaction, as well as limited impact on confidentiality and integrity. The flaw was publicly disclosed and fixed in version 5.8.22 of CraftCMS. No known exploits have been reported in the wild to date. Organizations running affected versions should apply the patch promptly to eliminate the risk of exploitation.
Potential Impact
For European organizations using CraftCMS versions between 5.0.0-RC1 and 5.8.21, this vulnerability poses a risk primarily to the confidentiality and integrity of the CMS administrative environment. An attacker with authenticated access and appropriate permissions could inject malicious scripts that execute in the browsers of other CMS users, potentially leading to session hijacking, unauthorized actions, or privilege escalation. While the vulnerability does not directly affect availability or require no authentication, the impact on internal CMS operations and data integrity could be significant, especially for organizations relying heavily on CraftCMS for content management and digital experience delivery. Exploitation could lead to unauthorized content changes or leakage of sensitive administrative information. Given the low CVSS score and the need for authenticated access, the threat is moderate but should not be underestimated in environments with multiple CMS administrators or editors. Failure to patch could expose organizations to targeted attacks, particularly in sectors where web content integrity is critical.
Mitigation Recommendations
1. Upgrade CraftCMS to version 5.8.22 or later immediately to apply the official fix for this vulnerability. 2. Restrict permissions within the CMS to limit who can create or modify Entry Types, ensuring only trusted administrators have such privileges. 3. Implement strict input validation and sanitization policies on all user inputs, especially those that are rendered in administrative interfaces. 4. Conduct regular security audits and code reviews of CMS customizations to detect potential injection points. 5. Educate CMS users and administrators about the risks of stored XSS and encourage vigilance when interacting with Entry Type names or other user-generated content. 6. Monitor CMS logs for unusual activities related to Entry Type modifications or unexpected script executions. 7. Employ Content Security Policy (CSP) headers to reduce the impact of potential XSS by restricting script sources. 8. Consider isolating the CMS administrative interface behind VPNs or IP whitelisting to reduce exposure to unauthorized users.
Affected Countries
Germany, United Kingdom, France, Netherlands, Sweden, Italy, Spain, Poland
CVE-2026-25491: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
Description
CVE-2026-25491 is a stored cross-site scripting (XSS) vulnerability in CraftCMS versions from 5. 0. 0-RC1 up to 5. 8. 21. The vulnerability arises because Entry Type names are not properly sanitized when displayed in the Entry Types list, allowing malicious scripts to be stored and executed in the context of the CMS interface. This flaw requires authenticated users with privileges to create or modify Entry Types and some user interaction to trigger the payload. The vulnerability has a low CVSS score of 1. 9 and is fixed in version 5. 8.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-25491 is a stored cross-site scripting (XSS) vulnerability classified under CWE-79 affecting CraftCMS, a popular content management system used for building digital experiences. The vulnerability exists in versions from 5.0.0-RC1 through 5.8.21 due to improper neutralization of input during web page generation. Specifically, Entry Type names are not sanitized when rendered in the Entry Types list, allowing an attacker with authenticated access and sufficient privileges to inject malicious JavaScript code. This stored XSS can execute in the context of the CMS administrative interface, potentially enabling attackers to hijack user sessions, perform actions on behalf of other users, or escalate privileges within the CMS environment. The vulnerability requires an attacker to have authenticated access with permission to create or modify Entry Types, and some user interaction is needed to trigger the malicious script. The CVSS 4.0 base score is 1.9, reflecting low severity due to the requirement for privileges and user interaction, as well as limited impact on confidentiality and integrity. The flaw was publicly disclosed and fixed in version 5.8.22 of CraftCMS. No known exploits have been reported in the wild to date. Organizations running affected versions should apply the patch promptly to eliminate the risk of exploitation.
Potential Impact
For European organizations using CraftCMS versions between 5.0.0-RC1 and 5.8.21, this vulnerability poses a risk primarily to the confidentiality and integrity of the CMS administrative environment. An attacker with authenticated access and appropriate permissions could inject malicious scripts that execute in the browsers of other CMS users, potentially leading to session hijacking, unauthorized actions, or privilege escalation. While the vulnerability does not directly affect availability or require no authentication, the impact on internal CMS operations and data integrity could be significant, especially for organizations relying heavily on CraftCMS for content management and digital experience delivery. Exploitation could lead to unauthorized content changes or leakage of sensitive administrative information. Given the low CVSS score and the need for authenticated access, the threat is moderate but should not be underestimated in environments with multiple CMS administrators or editors. Failure to patch could expose organizations to targeted attacks, particularly in sectors where web content integrity is critical.
Mitigation Recommendations
1. Upgrade CraftCMS to version 5.8.22 or later immediately to apply the official fix for this vulnerability. 2. Restrict permissions within the CMS to limit who can create or modify Entry Types, ensuring only trusted administrators have such privileges. 3. Implement strict input validation and sanitization policies on all user inputs, especially those that are rendered in administrative interfaces. 4. Conduct regular security audits and code reviews of CMS customizations to detect potential injection points. 5. Educate CMS users and administrators about the risks of stored XSS and encourage vigilance when interacting with Entry Type names or other user-generated content. 6. Monitor CMS logs for unusual activities related to Entry Type modifications or unexpected script executions. 7. Employ Content Security Policy (CSP) headers to reduce the impact of potential XSS by restricting script sources. 8. Consider isolating the CMS administrative interface behind VPNs or IP whitelisting to reduce exposure to unauthorized users.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-02T16:31:35.823Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 698a36084b57a58fa16ab205
Added to database: 2/9/2026, 7:31:20 PM
Last enriched: 2/17/2026, 9:44:15 AM
Last updated: 3/26/2026, 9:39:01 PM
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.