Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1tcTZ2LXczNWctM2M5N84AA5C1

Local File Inclusion vulnerability in zmarkdown

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.

Permalink: https://github.com/advisories/GHSA-mq6v-w35g-3c97
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tcTZ2LXczNWctM2M5N84AA5C1
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 10 months ago
Updated: 6 months ago


Identifiers: GHSA-mq6v-w35g-3c97
References: Repository: https://github.com/zestedesavoir/zmarkdown
Blast Radius: 0.0

Affected Packages

npm:zmarkdown
Dependent packages: 2
Dependent repositories: 9
Downloads: 377 last month
Affected Version Ranges: < 10.1.3
Fixed in: 10.1.3
All affected versions: 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.0.42, 0.0.43, 0.0.44, 0.0.45, 0.0.46, 0.0.47, 0.0.48, 0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