GitHub Advisoryadvisory · npm

GHSA-fw2f-7f87-5r6c Improper Input Validation in access-policy

CRITICAL Published 2021-05-17 Modified 2021-07-29 Official page ↗
Aliases
CVE-2020-7674
Ecosystem
npm
Packages
access-policy
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Reviewed
2021-05-13

Affected packages

• npm access-policy: <= 3.1.0 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2020-7674 access-policy through 3.1.0 is vulnerable to Arbitrary Code Execution. vulnerability

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References