# CVE-2021-27902: Craft CMS Cross-site Scripting Vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/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): 0.99%, higher than 61% of CVEs (2026-11-30)
- Published: 2021-06-30T11:56:40.000Z
- Modified: 2026-06-17T03:45:34.823Z
- Also known as: GHSA-3jxh-789f-p7m6
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

An issue was discovered in Craft CMS before 3.6.0. In some circumstances, a potential XSS vulnerability existed in connection with front-end forms that accepted user uploads.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- craftcms/cms (Packagist): before 3.6.0
- craftcms craft_cms: before 3.6.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#security-1> (release-notes, third-party-advisory, web)
- <https://github.com/craftcms/cms/commit/8ee85a8f03c143fa2420e7d6f311d95cae3b19ce> (patch, third-party-advisory, web)
- <https://github.com/craftcms/cms/blob/develop/CHANGELOG.md#360---2021-01-26> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27902> (advisory)

## Sources

- CVE List: [CVE-2021-27902](https://www.cve.org/CVERecord?id=CVE-2021-27902), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3jxh-789f-p7m6](https://github.com/advisories/GHSA-3jxh-789f-p7m6), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-27902](https://nvd.nist.gov/vuln/detail/CVE-2021-27902), Public domain, modified 2026-06-17

---

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