CVE-2022-25760 Arbitrary Code Injection

High 7.1 Published Updated

Attackers can execute arbitrary JavaScript code on the host by injecting malicious input into the format option of the accesslog package.

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

What is CVE-2022-25760?

CVE-2022-25760 is a high-severity code injection vulnerability in accesslog, published on 17 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

All versions of package accesslog are vulnerable to Arbitrary Code Injection due to the usage of the Function constructor without input sanitization. If (attacker-controlled) user input is given to the format option of the package's exported constructor function, it is possible for an attacker to execute arbitrary JavaScript code on the host that this package is being run on.

Weakness: CWE-94

Which versions are affected by CVE-2022-25760?

2 open source packages ship an affected version, including accesslog. It affects 1 product.

PackageAffectedFixed in
accesslog npmAll versions to 0.0.2None
accesslog npmAll versions to 0.0.2None

Products include Accesslog Project Accesslog.

How do I fix CVE-2022-25760?

No fix has been published for CVE-2022-25760 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-2022-25760 being exploited?

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

Sources

Also known as GHSA-8m2f-74r2-x3f2.

Is CVE-2022-25760 in your software?

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

Check your SBOMs for free