{"answers":{"affected":"4 open source packages ship an affected version, including @mockoon/cli and @mockoon/commons-server.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59049 exists.","fix":"Upgrade @mockoon/cli to 9.2.0 or later.","what":"CVE-2025-59049 is a high-severity path traversal vulnerability in mockoon, published on 10 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-59049 and fix it if it is affected.\n\nWhat it is: CVE-2025-59049 is a high-severity path traversal vulnerability in mockoon, published on 10 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59049 exists.\n\nAffected packages and fixed versions:\n- @mockoon/cli (npm): affected all versions; fixed in 9.2.0\n- @mockoon/cli (npm): affected all versions; fixed in 9.2.0\n- @mockoon/commons-server (npm): affected all versions; fixed in 9.2.0\n- @mockoon/commons-server (npm): affected all versions; fixed in 9.2.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/CVE-2025-59049/ (Markdown: https://insights.sbomify.com/CVE-2025-59049/index.md)","id":"CVE-2025-59049","markdown":"https://insights.sbomify.com/CVE-2025-59049/index.md","name":"CVE-2025-59049","record":{"aliases":["GHSA-w7f9-wqc4-3wxr"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Mockoon API mocking tool","requires_auth":"none","summary":"An attacker can exploit path traversal in Mockoon's static file serving to read arbitrary files from the server filesystem.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-24","name":"Path Traversal: '../filedir'"},{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Mockoon provides way to design and run mock APIs. Prior to version 9.2.0, a mock API configuration for static file serving follows the same approach presented in the documentation page, where the server filename is generated via templating features from user input is vulnerable to Path Traversal and LFI, allowing an attacker to get any file in the mock server filesystem.\nThe issue may be particularly relevant in cloud hosted server instances. Version 9.2.0 fixes the issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-59049.yaml","stars":null,"title":"Mockoon \u003c 9.2.0 - Path Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Mockoon has a Path Traversal and LFI in the static file serving endpoint","id":"CVE-2025-59049","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":4,"next":{"headline":"Greenshot — Insecure .NET deserialization via WM_COPYDATA enables local code execution","id":"CVE-2025-59050"},"packages":[{"ecosystem":"npm","fixed":["9.2.0"],"introduced":["0"],"last_affected":[],"package":"@mockoon/cli","purl":null,"source":"GHSA-w7f9-wqc4-3wxr"},{"ecosystem":"npm","fixed":["9.2.0"],"introduced":["0"],"last_affected":[],"package":"@mockoon/cli","purl":"pkg:npm/%40mockoon/cli","source":"GHSA-w7f9-wqc4-3wxr"},{"ecosystem":"npm","fixed":["9.2.0"],"introduced":["0"],"last_affected":[],"package":"@mockoon/commons-server","purl":null,"source":"GHSA-w7f9-wqc4-3wxr"},{"ecosystem":"npm","fixed":["9.2.0"],"introduced":["0"],"last_affected":[],"package":"@mockoon/commons-server","purl":"pkg:npm/%40mockoon/commons-server","source":"GHSA-w7f9-wqc4-3wxr"}],"prev":{"headline":"OpenBao AWS Plugin Vulnerable to Cross-Account IAM Role Impersonation in AWS Auth Method","id":"CVE-2025-59048"},"products":["mockoon"],"published":"2025-09-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-10","vendors":["mockoon"]},"summary":"An attacker can exploit path traversal in Mockoon's static file serving to read arbitrary files from the server filesystem.","url":"https://insights.sbomify.com/CVE-2025-59049/"}