Stored XSS via unescaped ESI cache attribute
Published Jan 11, 2024 · Updated Apr 8, 2026
Stored XSS in LiteSpeed Cache for WordPress 5.6 and earlier allows remote authenticated users to inject scripts through the ESI shortcode. The ESI class shortcode method accepts the user-controlled cache attribute and passes it to sub_esi_block, which inserts the derived control value into an esi:include element without attribute escaping. Contributor-level access and the non-default ESI setting are required; a submitted payload executes in the browser whenever the affected page is requested.
Summary
What happened
Stored XSS in LiteSpeed Cache for WordPress 5.6 and earlier allows remote authenticated users to inject scripts through the ESI shortcode. The ESI class shortcode method accepts the user-controlled cache attribute and passes it to sub_esi_block, which inserts the derived control value into an esi:include element without attribute escaping. Contributor-level access and the non-default ESI setting are required; a submitted payload executes in the browser whenever the affected page is requested.
The record
- CVE
- CVE-2023-4372
- Published
- Jan 11, 2024
- Updated
- Apr 8, 2026
- Vendor
- LiteSpeed Technologies
- Product
- LiteSpeed Cache for WordPress
- Classifications
- CWE-79, T1059.007
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 11, 2024CVE publishedPublication date reported by the CVE source.
- Apr 8, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=5.6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo