# CVE-2021-33040: Cross-site Scripting in epubjs

- 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.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2022-01-17T16:14:29.000Z
- Modified: 2026-06-17T03:54:03.603Z
- Also known as: GHSA-c6rp-xvqv-mwmf
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

managers/views/iframe.js in FuturePress EPub.js before 0.3.89 allows XSS.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- epubjs (npm): before 0.3.89
- futurepress epub.js: before 0.3.89

## 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/futurepress/epub.js/blob/5c7f21d648d9d20d44c6c365d164b16871847023/src/managers/views/iframe.js#L373> (third-party-advisory, web)
- <https://github.com/futurepress/epub.js/compare/v0.3.88...v0.3.89> (release-notes, third-party-advisory, web)
- <https://github.com/futurepress/epub.js/commit/ab4dd46408cce0324e1c67de4a3ba96b59e5012e> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-33040> (advisory)
- <https://github.com/futurepress/epub.js> (package)

## Sources

- CVE List: [CVE-2021-33040](https://www.cve.org/CVERecord?id=CVE-2021-33040), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-c6rp-xvqv-mwmf](https://github.com/advisories/GHSA-c6rp-xvqv-mwmf), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-33040](https://nvd.nist.gov/vuln/detail/CVE-2021-33040), Public domain, modified 2026-06-17

---

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