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

Critical 9.8 Published Updated

Attackers can execute arbitrary code via the template function in the access-policy library due to unsafe eval usage.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-7674?

CVE-2020-7674 is a critical code injection vulnerability in access-policy, published on 10 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2020-7674?

2 open source packages ship an affected version, including access-policy. It affects 1 product.

PackageAffectedFixed in
access-policy npmAll versions to 3.1.0None
access-policy npmAll versions to 3.1.0None

Products include Access-Policy Project Access-Policy.

How do I fix CVE-2020-7674?

No fix has been published for CVE-2020-7674 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-7674 being exploited?

There is no known exploitation of CVE-2020-7674 in the wild and no public exploit code.

Sources

Also known as GHSA-fw2f-7f87-5r6c, SNYK-JS-ACCESSPOLICY-571490.

Is CVE-2020-7674 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free