# CVE-2020-7674: Improper Input Validation in access-policy

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/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.57%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-10T15:36:01.000Z
- Modified: 2026-07-08T06:50:02.291Z
- Also known as: GHSA-fw2f-7f87-5r6c, SNYK-JS-ACCESSPOLICY-571490
- Weaknesses: CWE-94
- Assigned by: snyk

## Description

access-policy through 3.1.0 is vulnerable to Arbitrary Code Execution. User input provided to the `template` function is executed by the `eval` function resulting in code execution.

(As written by CVE List.)

## Affected

- access-policy: All versions including 3.1.0
- access-policy (npm): up to 3.1.0
- access-policy_project access-policy: up to 3.1.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-ACCESSPOLICY-571490> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7674> (advisory)

## Sources

- CVE List: [CVE-2020-7674](https://www.cve.org/CVERecord?id=CVE-2020-7674), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-fw2f-7f87-5r6c](https://github.com/advisories/GHSA-fw2f-7f87-5r6c), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-7674](https://nvd.nist.gov/vuln/detail/CVE-2020-7674), Public domain, modified 2026-06-17

---

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