{"answers":{"affected":"2 open source packages ship an affected version, including remark-images-download.","exploited":"There is no known exploitation of GHSA-mf74-qq7w-6j7v in the wild and no public exploit code.","fix":"Upgrade remark-images-download to 3.1.0 or later.","what":"GHSA-mf74-qq7w-6j7v is a server-side request forgery vulnerability in remark-images-download, published on 3 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-mf74-qq7w-6j7v and fix it if it is affected.\n\nWhat it is: GHSA-mf74-qq7w-6j7v is a server-side request forgery vulnerability in remark-images-download, published on 3 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-mf74-qq7w-6j7v in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- remark-images-download (npm): affected all versions; fixed in 3.1.0\n- remark-images-download (npm): affected all versions; fixed in 3.1.0\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-mf74-qq7w-6j7v/ (Markdown: https://insights.sbomify.com/GHSA-mf74-qq7w-6j7v/index.md)","id":"GHSA-mf74-qq7w-6j7v","markdown":"https://insights.sbomify.com/GHSA-mf74-qq7w-6j7v/index.md","name":"GHSA-mf74-qq7w-6j7v","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Markdown processing library","requires_auth":"low_privilege","summary":"An attacker can exploit loose URL filtering to access private network resources via Server-Side Request Forgery in the remark-download-images library.","user_interaction":"required","vuln_class":"ssrf"},"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 major blind SSRF has been found in `remark-images-download`, which allowed\nfor requests to be made to neighboring servers on local IP ranges.\nThe issue came from a loose filtering of URLs inside the module.\n\nImagine a server running on a private network `192.168.1.0/24`.\nA private service serving images is running on `192.168.1.2`, and\nis not expected to be accessed by users. A machine is running\n`remark-images-download` on the neighboring `192.168.1.3` host.\nAn user enters the following Markdown:\n\n```markdown\n![](http://192.168.1.2/private-img.png)\n```\n\nThe image is downloaded by the server and included inside the resulting\ndocument. Hence, the user has access to the private image.\n\nIt has been corrected by preventing images downloads from\nlocal IP ranges, both in IPv4 and IPv6.\nTo avoid malicious domain names, resolved local IPs from are also\nforbidden inside the module.\nThis vulnerability impact is moderate, as it is can allow access to\nunexposed documents on the local network, and is very easy\nto exploit.\n\n### Patches\n\nThe vulnerability has been patched in version 3.1.0.\nIf impacted, you should update to this version as soon as possible.\n\nPlease note that a minor version has been released instead of a bugfix.\nThis is due to a new option included to prevent another vulnerability,\nupgrading to the new version will not break compatibility.\n\n### Workarounds\n\nNo workaround is known, the package should be upgraded.\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":"Zmarkdown Server-Side Request Forgery (SSRF) in remark-download-images","id":"GHSA-mf74-qq7w-6j7v","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["3.1.0"],"introduced":["0"],"last_affected":[],"package":"remark-images-download","purl":null,"source":"GHSA-mf74-qq7w-6j7v"},{"ecosystem":"npm","fixed":["3.1.0"],"introduced":["0"],"last_affected":[],"package":"remark-images-download","purl":"pkg:npm/remark-images-download","source":"GHSA-mf74-qq7w-6j7v"}],"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 exploit loose URL filtering to access private network resources via Server-Side Request Forgery in the remark-download-images library.","url":"https://insights.sbomify.com/GHSA-mf74-qq7w-6j7v/"}