{"answers":{"affected":"2 open source packages ship an affected version, including zmarkdown.","exploited":"There is no known exploitation of GHSA-mq6v-w35g-3c97 in the wild and no public exploit code.","fix":"Upgrade zmarkdown to 10.1.3 or later.","what":"GHSA-mq6v-w35g-3c97 is a path traversal vulnerability in zmarkdown, published on 3 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-mq6v-w35g-3c97 and fix it if it is affected.\n\nWhat it is: GHSA-mq6v-w35g-3c97 is a path traversal vulnerability in zmarkdown, published on 3 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-mq6v-w35g-3c97 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- zmarkdown (npm): affected all versions; fixed in 10.1.3\n- zmarkdown (npm): affected all versions; fixed in 10.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-mq6v-w35g-3c97/ (Markdown: https://insights.sbomify.com/GHSA-mq6v-w35g-3c97/index.md)","id":"GHSA-mq6v-w35g-3c97","markdown":"https://insights.sbomify.com/GHSA-mq6v-w35g-3c97/index.md","name":"GHSA-mq6v-w35g-3c97","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Markdown to LaTeX library","requires_auth":"none","summary":"An attacker can include arbitrary local files in generated LaTeX documents by specifying known paths, potentially exposing sensitive host data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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![](/tmp/img.png)\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).","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Local File Inclusion vulnerability in zmarkdown","id":"GHSA-mq6v-w35g-3c97","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["10.1.3"],"introduced":["0"],"last_affected":[],"package":"zmarkdown","purl":null,"source":"GHSA-mq6v-w35g-3c97"},{"ecosystem":"npm","fixed":["10.1.3"],"introduced":["0"],"last_affected":[],"package":"zmarkdown","purl":"pkg:npm/zmarkdown","source":"GHSA-mq6v-w35g-3c97"}],"products":null,"published":"2024-02-03","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"An attacker can include arbitrary local files in generated LaTeX documents by specifying known paths, potentially exposing sensitive host data.","url":"https://insights.sbomify.com/GHSA-mq6v-w35g-3c97/"}