# CVE-2021-20066: JSDom improperly allows the loading of local resources, which allows for local files to be manipulated by a malicious web page when script…

- Severity: Medium 5.6 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.46%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-02-16T19:48:08.000Z
- Modified: 2026-09-10T03:49:22.212Z
- Also known as: GHSA-f4c9-cqv8-9v98
- Weaknesses: CWE-1220
- Assigned by: tenable

## Description

JSDom improperly allows the loading of local resources, which allows for local files to be manipulated by a malicious web page when script execution is enabled.

(As written by CVE List.)

## Affected

- JSDom: JSDom 16.4.0
- jsdom (npm): before 16.5.0
- jsdom_project jsdom: no versions given

## Every score

- GitHub: CVSS:3.1 0.0 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:N`
- NVD: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.tenable.com/security/research/tra-2021-05> (exploit, third-party-advisory, web)
- <https://github.com/jsdom/jsdom/issues/3124#issuecomment-783502951> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20066> (advisory)
- <https://github.com/jsdom/jsdom/issues/3124> (web)
- <https://github.com/jsdom/jsdom> (package)
- <https://security.snyk.io/vuln/SNYK-JS-JSDOM-1075447> (web)

## Sources

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

---

Page: https://cve.day/CVE-2021-20066 · Whole record: https://cve.day/CVE-2021-20066.json · Rebuilt by cve.day 2026-11-25T22:57:59.964Z
