# CVE-2021-21380: Rating Script Service expose XWiki to SQL injection

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Published: 2021-03-23T22:45:15.000Z
- Modified: 2026-09-10T03:49:26.633Z
- Also known as: GHSA-79rg-7mv3-jrr5
- Weaknesses: CWE-89
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: < 12.9
- org.xwiki.platform:xwiki-platform-ratings-api (Maven): before 12.9
- xwiki xwiki: from 6.4.1 up to 12.8; 6.4

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5> (third-party-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-17662> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21380> (advisory)

## Sources

- CVE List: [CVE-2021-21380](https://www.cve.org/CVERecord?id=CVE-2021-21380), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-79rg-7mv3-jrr5](https://github.com/advisories/GHSA-79rg-7mv3-jrr5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21380](https://nvd.nist.gov/vuln/detail/CVE-2021-21380), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21380 · Whole record: https://cve.day/CVE-2021-21380.json · Rebuilt by cve.day 2026-11-25T22:58:00.402Z
