# CVE-2021-25978: Apostrophe - XSS

- Severity: Medium 5.4 (CVSS:3.1, scored by Mend) `CVSS:3.1/AV:N/AC:L/PR:L/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.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2021-11-07T17:15:10.000Z
- Modified: 2026-06-17T03:42:43.100Z
- Also known as: GHSA-4r9c-jghc-cx5m
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Mend

## Description

Apostrophe CMS versions between 2.63.0 to 3.3.1 are vulnerable to Stored XSS where an editor uploads an SVG file that contains malicious JavaScript onto the Images module, which triggers XSS once viewed.

(As written by CVE List.)

## Affected

- Apostrophe Apostrophe: from unspecified up to 3.3.1; from 2.63.0 before unspecified
- apostrophe (npm): from 2.63.0 before 3.4.0
- apostrophecms apostrophecms: from 2.63.0 up to 3.3.1

## Every score

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

## References

- <https://github.com/apostrophecms/apostrophe/commit/c8b94ee9c79468f1ce28e31966cb0e0839165e59> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25978> (advisory)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2021-25978](https://www.cve.org/CVERecord?id=CVE-2021-25978), CVE Terms of Use, modified 2025-04-30
- GitHub Advisory Database: [GHSA-4r9c-jghc-cx5m](https://github.com/advisories/GHSA-4r9c-jghc-cx5m), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-25978](https://nvd.nist.gov/vuln/detail/CVE-2021-25978), Public domain, modified 2026-06-17

---

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