CVE-2026-27126: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
Craft is a content management system (CMS). In versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22, a stored Cross-site Scripting (XSS) vulnerability exists in the `editableTable.twig` component when using the `html` column type. The application fails to sanitize the input, allowing an attacker to execute arbitrary JavaScript when another user views a page with the malicious table field. In order to exploit the vulnerability, an attacker must have an administrator account, and `allowAdminChanges` must be enabled in production, which is against Craft's security recommendations. Versions 4.16.19 and 5.8.23 patch the issue.
AI Analysis
Technical Summary
CVE-2026-27126 is a stored Cross-site Scripting (XSS) vulnerability identified in the Craft CMS, a popular content management system used for building websites. The vulnerability affects versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22. It resides specifically in the editableTable.twig component when the html column type is used. The root cause is improper neutralization of input during web page generation, where user-supplied HTML content is not adequately sanitized before rendering. This allows an attacker with an administrator account to inject arbitrary JavaScript code into the table fields. When other users view pages containing the malicious table, the injected script executes in their browsers, potentially leading to session hijacking, credential theft, or other malicious actions. Exploitation requires that the allowAdminChanges configuration be enabled in production environments, which is contrary to Craft CMS security guidelines. The vulnerability has been assigned a CVSS 4.0 base score of 5.9, reflecting medium severity, with attack vector being network, low attack complexity, partial privileges required (administrator), and user interaction needed (viewing the malicious page). The vulnerability was publicly disclosed on February 24, 2026, and patched in versions 4.16.19 and 5.8.23. There are no known exploits in the wild at this time.
Potential Impact
The impact of CVE-2026-27126 is primarily on the confidentiality and integrity of user sessions and data within affected Craft CMS installations. Successful exploitation allows an attacker with administrator access to inject malicious scripts that execute in the context of other users’ browsers, potentially leading to session hijacking, unauthorized actions, or data theft. Although exploitation requires administrator privileges and a non-default insecure configuration (allowAdminChanges enabled in production), organizations running vulnerable versions with this setting enabled face significant risk. The vulnerability could be leveraged to compromise user accounts, deface websites, or pivot to further internal attacks. Given Craft CMS’s use in various industries for website management, the threat could affect organizations relying on this CMS for public-facing or internal portals, especially if administrators are not following recommended security practices. The absence of known exploits in the wild reduces immediate risk but does not eliminate the potential for targeted attacks or future exploit development.
Mitigation Recommendations
To mitigate CVE-2026-27126, organizations should immediately upgrade Craft CMS to versions 4.16.19 or 5.8.23 or later, where the vulnerability is patched. Administrators must ensure that the allowAdminChanges setting is disabled in production environments, adhering strictly to Craft CMS security recommendations. Review and sanitize all inputs, especially those involving the editableTable.twig component and html column types, to prevent injection of malicious content. Implement Content Security Policy (CSP) headers to restrict execution of unauthorized scripts in browsers. Conduct regular security audits and penetration testing focused on CMS components to detect similar issues. Limit administrator account usage and enforce strong authentication controls to reduce the risk of privilege abuse. Monitor logs for unusual administrative activity or unexpected changes to table fields. Finally, educate administrators about secure configuration practices and the risks of enabling development features in production.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, Netherlands, France, Japan, South Korea, Brazil
CVE-2026-27126: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in craftcms cms
Description
Craft is a content management system (CMS). In versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22, a stored Cross-site Scripting (XSS) vulnerability exists in the `editableTable.twig` component when using the `html` column type. The application fails to sanitize the input, allowing an attacker to execute arbitrary JavaScript when another user views a page with the malicious table field. In order to exploit the vulnerability, an attacker must have an administrator account, and `allowAdminChanges` must be enabled in production, which is against Craft's security recommendations. Versions 4.16.19 and 5.8.23 patch the issue.
AI-Powered Analysis
Technical Analysis
CVE-2026-27126 is a stored Cross-site Scripting (XSS) vulnerability identified in the Craft CMS, a popular content management system used for building websites. The vulnerability affects versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22. It resides specifically in the editableTable.twig component when the html column type is used. The root cause is improper neutralization of input during web page generation, where user-supplied HTML content is not adequately sanitized before rendering. This allows an attacker with an administrator account to inject arbitrary JavaScript code into the table fields. When other users view pages containing the malicious table, the injected script executes in their browsers, potentially leading to session hijacking, credential theft, or other malicious actions. Exploitation requires that the allowAdminChanges configuration be enabled in production environments, which is contrary to Craft CMS security guidelines. The vulnerability has been assigned a CVSS 4.0 base score of 5.9, reflecting medium severity, with attack vector being network, low attack complexity, partial privileges required (administrator), and user interaction needed (viewing the malicious page). The vulnerability was publicly disclosed on February 24, 2026, and patched in versions 4.16.19 and 5.8.23. There are no known exploits in the wild at this time.
Potential Impact
The impact of CVE-2026-27126 is primarily on the confidentiality and integrity of user sessions and data within affected Craft CMS installations. Successful exploitation allows an attacker with administrator access to inject malicious scripts that execute in the context of other users’ browsers, potentially leading to session hijacking, unauthorized actions, or data theft. Although exploitation requires administrator privileges and a non-default insecure configuration (allowAdminChanges enabled in production), organizations running vulnerable versions with this setting enabled face significant risk. The vulnerability could be leveraged to compromise user accounts, deface websites, or pivot to further internal attacks. Given Craft CMS’s use in various industries for website management, the threat could affect organizations relying on this CMS for public-facing or internal portals, especially if administrators are not following recommended security practices. The absence of known exploits in the wild reduces immediate risk but does not eliminate the potential for targeted attacks or future exploit development.
Mitigation Recommendations
To mitigate CVE-2026-27126, organizations should immediately upgrade Craft CMS to versions 4.16.19 or 5.8.23 or later, where the vulnerability is patched. Administrators must ensure that the allowAdminChanges setting is disabled in production environments, adhering strictly to Craft CMS security recommendations. Review and sanitize all inputs, especially those involving the editableTable.twig component and html column types, to prevent injection of malicious content. Implement Content Security Policy (CSP) headers to restrict execution of unauthorized scripts in browsers. Conduct regular security audits and penetration testing focused on CMS components to detect similar issues. Limit administrator account usage and enforce strong authentication controls to reduce the risk of privilege abuse. Monitor logs for unusual administrative activity or unexpected changes to table fields. Finally, educate administrators about secure configuration practices and the risks of enabling development features in production.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-17T18:42:27.043Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 699d14d6be58cf853b182c33
Added to database: 2/24/2026, 3:02:46 AM
Last enriched: 2/24/2026, 3:19:21 AM
Last updated: 2/25/2026, 12:16:46 AM
Views: 8
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.
Related Threats
CVE-2026-3134: SQL Injection in itsourcecode News Portal Project
MediumCVE-2026-3133: SQL Injection in itsourcecode Document Management System
MediumCVE-2026-27593: CWE-640: Weak Password Recovery Mechanism for Forgotten Password in statamic cms
CriticalCVE-2026-27117: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rikyoz bit7z
MediumCVE-2026-27572: CWE-770: Allocation of Resources Without Limits or Throttling in bytecodealliance wasmtime
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.