# CVE-2020-8141: Improper Control of Generation of Code in doT

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 2.20%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-03-15T17:04:40.000Z
- Modified: 2026-06-17T03:25:55.900Z
- Also known as: GHSA-297x-8xj4-vcxv
- Weaknesses: CWE-94
- Assigned by: hackerone

## Description

The dot package v1.1.2 uses Function() to compile templates. This can be exploited by the attacker if they can control the given template or if they can control the value set on Object.prototype.

(As written by CVE List.)

## Affected

- dot: 1.1.2
- dot (npm): before 1.1.3
- dot_project dot: 1.1.2

## Every score

- GitHub: 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: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://hackerone.com/reports/390929> (exploit, mitigation, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8141> (advisory)

## Sources

- CVE List: [CVE-2020-8141](https://www.cve.org/CVERecord?id=CVE-2020-8141), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-297x-8xj4-vcxv](https://github.com/advisories/GHSA-297x-8xj4-vcxv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-8141](https://nvd.nist.gov/vuln/detail/CVE-2020-8141), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8141 · Whole record: https://cve.day/CVE-2020-8141.json · Rebuilt by cve.day 2026-11-25T22:57:51.428Z
