GHSA-mq6v-w35g-3c97: Zmarkdown Local File Inclusion Vulnerability Vulnerability
LOWGHSA-mq6v-w35g-3c97 is a LOW local file inclusion vulnerability vulnerability (General Security Weakness) affecting Zmarkdown libraries in the npm ecosystem. The issue involves local file inclusion vulnerability in zmarkdown. Remediation is available by upgrading affected packages to version 10.1.3.
GHSA-mq6v-w35g-3c97 at a Glance
How to Fix GHSA-mq6v-w35g-3c97
To remediate this vulnerability, upgrade all affected Zmarkdown dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install zmarkdown@10.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls zmarkdown
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-mq6v-w35g-3c97, inspect your project dependencies using npm:
npm ls zmarkdown
Analyze the terminal output to locate any version of Zmarkdown in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.1.3), your application is affected.
Note: The npm ls zmarkdown command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Zmarkdown, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mq6v-w35g-3c97 Affected Zmarkdown Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zmarkdown
|
npm |
< 10.1.3
|
10.1.3
|
References
Frequently Asked Questions
What is GHSA-mq6v-w35g-3c97?
Which Zmarkdown versions are affected?
What version fixes GHSA-mq6v-w35g-3c97?
Is zmarkdown affected?
What CWE is associated with GHSA-mq6v-w35g-3c97?
How can I check npm dependencies for GHSA-mq6v-w35g-3c97?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mq6v-w35g-3c97",
"modified" : "2024-05-14T22:01:12Z",
"published" : "2024-02-03T00:37:56Z",
"aliases" : [ ],
"summary" : "Local File Inclusion vulnerability in zmarkdown",
"details" : "### Impact\n\nA minor Local File Inclusion vulnerability has been found in\n`zmarkdown`, which allowed for images with a known path on\nthe host machine to be included inside a LaTeX document.\n\nTo prevent it, a new option has been created that allow to replace\ninvalid paths with a default image instead of linking the image on the\nhost directly. `zmarkdown` has been updated to make this setting the\ndefault.\n\nEvery user of `zmarkdown` is likely impacted, except if\ndisabling LaTeX generation or images download. Here\nis an example of including an image from an invalid path:\n\n```markdown\n\n```\n\nWill effectively redownload and include the image\nfound at `/tmp/img.png`.\n\n### Patches\n\nThe vulnerability has been patched in version 10.1.3.\nIf impacted, you should update to this version as soon as possible.\n\n### Workarounds\n\nDisable images downloading, or sanitize paths.\n\n### For more information\n\nIf you have any questions or comments about this advisory, open an issue in [ZMarkdown](https://github.com/zestedesavoir/zmarkdown/issues).\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "zmarkdown"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zestedesavoir/zmarkdown/security/advisories/GHSA-mq6v-w35g-3c97"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zestedesavoir/zmarkdown"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-03T00:37:56Z",
"nvd_published_at" : null
}
}