CVE-2022-0748 Arbitrary Code Execution
Attackers can execute arbitrary JavaScript code by providing malicious markdown input to the post-loader library.
- 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-2022-0748?
CVE-2022-0748 is a critical code injection vulnerability in post-loader, published on 17 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package post-loader from 0.0.0 are vulnerable to Arbitrary Code Execution which uses a markdown parser in an unsafe way so that any javascript code inside the markdown input files gets evaluated and executed.
Weakness: CWE-79
Which versions are affected by CVE-2022-0748?
2 open source packages ship an affected version, including post-loader. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
post-loader npm | From 0.0.0 | None |
post-loader npm | From 0.0.0 | None |
Products include Post-Loader Project Post-Loader.
How do I fix CVE-2022-0748?
No fix has been published for CVE-2022-0748 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-0748 being exploited?
There is no known exploitation of CVE-2022-0748 in the wild and no public exploit code.
Sources
Also known as GHSA-66ww-999q-mffq, SNYK-JS-POSTLOADER-2403737.