CVE-2019-5479 Unintended Require in larvitbase-api
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).
Which versions are affected by CVE-2019-5479?
2 open source packages ship an affected version, including larvitbase-api. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
larvitbase-api npm | All versions | 0.5.5 |
larvitbase-api npm | All versions | 0.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.