CVE-2023-0835 markdown-pdf 11.0.0 - Local File Read via Server Side XSS

High 8.2 Published Updated

An attacker can exploit Server-Side XSS in markdown-pdf to read arbitrary local files from the server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-0835?

CVE-2023-0835 is a high-severity cross-site scripting vulnerability in markdown-pdf, published on 4 Apr 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

markdown-pdf version 11.0.0 allows an external attacker to remotely obtain arbitrary local files. This is possible because the application does not validate the Markdown content entered by the user.

Weakness: CWE-79

Which versions are affected by CVE-2023-0835?

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

PackageAffectedFixed in
markdown-pdf npmAll versions to 11.0.0None
markdown-pdf npmAll versions to 11.0.0None

Products include Markdown-Pdf Project Markdown-Pdf.

How do I fix CVE-2023-0835?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-0835 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0835 exists.

Sources

Also known as GHSA-qghr-877h-f9jh.

Is CVE-2023-0835 in your software?

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

Check your SBOMs for free