What’s Vulnerable › Vulnerabilities
CVE-2021-21380: Rating Script Service expose XWiki to SQL injection
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-23 · updated 2026-06-17
- Weakness: CWE-89
Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions of XWiki Platform (and only those with the Ratings API installed), the Rating Script Service expose an API to perform SQL requests without escaping the from and where search arguments. This might lead to an SQL script injection quite easily for any user having Script rights on XWiki. The problem has been patched in XWiki 12.9RC1. The only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.
Affected products
- xwiki-platform: from 6.4.1 through 12.8; 6.4, 6.4-milestone3, 6.4-rc1
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5
- https://jira.xwiki.org/browse/XWIKI-17662
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5
- https://jira.xwiki.org/browse/XWIKI-17662
Get alerted when CVE-2021-21380 or the next vulnerability affects your stack