CVE-2019-5479 Unintended Require in larvitbase-api

High 7.5 Published Updated

An attacker can load arbitrary JavaScript files via unintended require, leading to code execution in applications using larvitbase-api.

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

What is CVE-2019-5479?

CVE-2019-5479 is a high-severity code injection vulnerability in larvitbase-api, published on 3 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An unintended require vulnerability in <v0.5.5 larvitbase-api may allow an attacker to load arbitrary non-production code (JavaScript file).

Weakness: CWE-829, CWE-98

Which versions are affected by CVE-2019-5479?

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

PackageAffectedFixed in
larvitbase-api npmAll versions0.5.5
larvitbase-api npmAll versions0.5.5

Products include Larvit Larvitbase.

How do I fix CVE-2019-5479?

Upgrade larvitbase-api to 0.5.5 or later.

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

Is CVE-2019-5479 being exploited?

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

Sources

Also known as GHSA-xf27-jqwv-gf3r.

Is CVE-2019-5479 in your software?

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

Check your SBOMs for free