
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-61812 is an HTML entity decoding evasion vulnerability in ModSecurity, an open-source WAF engine for Apache, IIS, and Nginx. The t:htmlEntityDecode transformation function recognized only five named HTML entities (", &, <, >, ), allowing attackers to encode ASCII separators and operators using unhandled entity names to bypass WAF rules that depend on this transformation. Affected versions are ModSecurity v2 prior to 2.9.15 and v3 from 3.0.0 through 3.0.16. The vulnerability was disclosed on September 30, 2026, and fixed versions were released the same day. It carries a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory, Feedly).
The root cause is classified as CWE-172 (Improper Encoding or Decoding of Data) and CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize). The t:htmlEntityDecode function used a hand-curated, incomplete entity table covering only five of the 44 named HTML entities that map to ASCII characters, meaning 39 entities (including aliases like {/{ for {, : for :, = for =) were passed through undecoded. An additional defect in the v3 decoder used prefix-length matching (strncasecmp with the name length only) instead of exact token-length comparison, causing inputs like <est; to decode to < and silently drop est, enabling further bypass. Attackers can craft HTTP requests with payloads encoded using unhandled entity names (e.g., javascript:execute_my_code()) that browsers decode normally but ModSecurity rules never inspect (GitHub Advisory, v2 Fix Commit, v3 Fix Commit).
Successful exploitation allows attackers to bypass WAF rules that rely on t:htmlEntityDecode normalization, effectively neutralizing protection for 35 OWASP Core Rule Set (CRS) rules — 28 in REQUEST-941 (XSS), 3 in REQUEST-921 (Protocol Attack), 3 in REQUEST-944 (Java/Log4Shell), and 1 in REQUEST-920 (Protocol Enforcement). There is no general safety net behind these rules; for example, encoding the = character (an attribute separator) defeats @detectXSS (CRS 941100) outright. The integrity impact is low and availability is unaffected, but the bypass enables downstream attacks such as XSS, protocol-level attacks, and potentially Log4Shell exploitation against backend applications that ModSecurity was intended to protect (GitHub Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The vulnerability is network-exploitable with no authentication or user interaction required, but attack requirements include the presence of WAF rules using t:htmlEntityDecode. The EPSS score is approximately 0.316%, indicating low near-term exploitation probability. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog, and NVD's supplemental data confirms exploitation status as "none" (Feedly, GitHub Advisory).
t:htmlEntityDecode transformation (e.g., OWASP CRS XSS or protocol attack rules).q=javascript:execute_my_code()) is blocked by a ModSecurity rule such as SecRule ARGS "@rx javascript:" "id:10002,phase:2,t:none,t:htmlEntityDecode,deny".: as : to produce q=javascript:execute_my_code(), or encode = as = to bypass attribute-matching rules.<est;) to trigger prefix-match decoding, causing the decoder to transform the token incorrectly and pass the payload through.t:htmlEntityDecode passes the unrecognized entities through undecoded, so the rule never matches the malicious pattern.:, =, ;, {, {, &hat;, !) where the decoded form would match known attack patterns (XSS, JNDI injection strings).javascript: or ${jndi:ldap.javascript:, ${jndi:ldap://, or SQL injection operators encoded as HTML entities.Upgrade ModSecurity to version 2.9.15 (v2 branch) or 3.0.17 (v3 branch), which replace the hand-curated entity table with a generated table derived from the WHATWG entities.json specification covering all 44 relevant named entities, and fix the v3 prefix-match bug by requiring exact token-length comparison. No complete workaround exists that fully substitutes for the patch; however, rules using @detectXSS, @detectSQLi, or those that match entity spellings directly in their regex (as CRS 944150–944152 do for Log4Shell) are unaffected by this vulnerability. Administrators should prioritize upgrading if their deployments rely on t:htmlEntityDecode-based rules for XSS or protocol attack detection (v2 Release, v3 Release, GitHub Advisory).
The vulnerability was disclosed by the OWASP ModSecurity maintainers (airween, fzipi, marcstern) via a coordinated GitHub Security Advisory. Community discussion noted that the scope of the missing entities was broader than initially reported — the original report identified only two missing entities (' and :), but the full fix addressed 39 missing entities plus entity aliases used in real-world Log4Shell payloads. The advisory explicitly called out that CRS rules 944150–944152 had already worked around this decoder limitation by matching entity spellings directly in their regex patterns, highlighting the practical awareness of this gap in the security community (GitHub Advisory).
Fix availability across major Linux distributions and their releases.
bookworm
modsecurity-apache
sid
modsecurity-apache
trixie
modsecurity-apache
bionic (esm-apps)
modsecurity-apache
devel
modsecurity
focal (esm-apps)
modsecurity
jammy
modsecurity
jammy (esm-apps)
modsecurity
noble
modsecurity
noble (esm-apps)
modsecurity
resolute
modsecurity
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."