Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm

GHSA-mq6v-w35g-3c97

Local File Inclusion vulnerability in zmarkdown

Published
Feb 3, 2024
Updated
May 14, 2024
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed

Blast Radius

1 pkg affected
📦zmarkdown

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

Description

Impact

A minor Local File Inclusion vulnerability has been found in zmarkdown, which allowed for images with a known path on the host machine to be included inside a LaTeX document.

To prevent it, a new option has been created that allow to replace invalid paths with a default image instead of linking the image on the host directly. zmarkdown has been updated to make this setting the default.

Every user of zmarkdown is likely impacted, except if disabling LaTeX generation or images download. Here is an example of including an image from an invalid path:

![](/tmp/img.png)

Will effectively redownload and include the image found at /tmp/img.png.

Patches

The vulnerability has been patched in version 10.1.3. If impacted, you should update to this version as soon as possible.

Workarounds

Disable images downloading, or sanitize paths.

For more information

If you have any questions or comments about this advisory, open an issue in ZMarkdown.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmzmarkdownall versions10.1.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for zmarkdown. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update zmarkdown to 10.1.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-mq6v-w35g-3c97 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-mq6v-w35g-3c97 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-mq6v-w35g-3c97. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Impact A minor Local File Inclusion vulnerability has been found in `zmarkdown`, which allowed for images with a known path on the host machine to be included inside a LaTeX document. To prevent it, a new option has been created that allow to replace invalid paths with a default image instead of linking the image on the host directly. `zmarkdown` has been updated to make this setting the default. Every user of `zmarkdown` is likely impacted, except if disabling LaTeX generation or images download. Here is an example of including an image from an invalid path: ```markdown ![](/tmp/img.p
O3 Security · Impact-Aware SCA

Is GHSA-mq6v-w35g-3c97 in your dependencies?

O3 detects GHSA-mq6v-w35g-3c97 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.