{"answers":{"affected":"2 open source packages ship an affected version, including tmp. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54798 exists.","fix":"Upgrade tmp to 0.2.4 or later.","what":"CVE-2025-54798 is a low-severity path traversal vulnerability in raszi node-tmp, published on 7 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54798 and fix it if it is affected.\n\nWhat it is: CVE-2025-54798 is a low-severity path traversal vulnerability in raszi node-tmp, published on 7 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54798 exists.\n\nAffected packages and fixed versions:\n- tmp (npm): affected all versions; fixed in 0.2.4\n- tmp (npm): affected all versions; fixed in 0.2.4\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-54798/ (Markdown: https://insights.sbomify.com/CVE-2025-54798/index.md)","id":"CVE-2025-54798","markdown":"https://insights.sbomify.com/CVE-2025-54798/index.md","name":"CVE-2025-54798","record":{"aliases":["CLSA-2026-1775003179","CLSA-2026-1775003184","CLSA-2026-1775003185","CLSA-2026-1775608295","CLSA-2026-1776818190","CLSA-2026-1782694760","CLSA-2026-1784682766","CLSA-2026-1792490490","DEBIAN-CVE-2025-54798","DLA-4268-1","ECHO-9005-3017-0bea","GHSA-52f5-9888-hmc6","MINI-4hc2-vx7m-hgjq","MINI-8854-r47v-wfrh","MINI-c59g-g6x3-c32j","MINI-f9pj-cjhg-v2wm","MINI-g8xp-hmcq-rv44","MINI-gqvw-f5fg-hc82","MINI-jqcx-r88h-hv2v","MINI-pr35-rjwx-3rcr","MINI-pr7q-5jhf-83jc","MINI-qqvx-w279-w4m4","MINI-rmpr-92wq-x9pp","ROOT-APP-NPM-CVE-2025-54798","UBUNTU-CVE-2025-54798","openSUSE-SU-2025:15502-1","openSUSE-SU-2025:15506-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js tmp library","requires_auth":"low_privilege","summary":"Attackers can write arbitrary files or directories via symbolic link manipulation in the tmp library, potentially leading to code execution or data modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tmp","vendor":"raszi"}],"cvss":{"score":2.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"tmp is a temporary file and directory creator for node.js. In versions 0.2.3 and below, tmp is vulnerable to an arbitrary temporary file / directory write via symbolic link dir parameter. This is fixed in version 0.2.4.","ecosystems":["npm","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"tmp does not restrict arbitrary temporary file / directory write via symbolic link `dir` parameter","id":"CVE-2025-54798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":3,"next":{"headline":"Lego does not enforce HTTPS","id":"CVE-2025-54799"},"packages":[{"ecosystem":"npm","fixed":["0.2.4"],"introduced":["0"],"last_affected":[],"package":"tmp","purl":null,"source":"GHSA-52f5-9888-hmc6"},{"ecosystem":"npm","fixed":["0.2.4"],"introduced":["0"],"last_affected":[],"package":"tmp","purl":"pkg:npm/tmp","source":"GHSA-52f5-9888-hmc6"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.12.45-13.1"],"introduced":["0"],"last_affected":[],"package":"python-bqplot","purl":"pkg:rpm/opensuse/python-bqplot\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15506-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.0.2-23.1"],"introduced":["0"],"last_affected":[],"package":"python-nbdime","purl":"pkg:rpm/opensuse/python-nbdime\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15502-1"}],"prev":{"headline":"Copyparty is vulnerable to Regex Denial of Service (ReDoS) attacks through \"Recent Uploads\" page","id":"CVE-2025-54796"},"products":["node-tmp"],"published":"2025-08-07","related":[{"cvss_score":8.2,"headline":"tmp: Type-confusion bypass of _assertPath in tmp@0.2.6 allows path traversal via non-string prefix/postfix/template","id":"CVE-2026-49982","kev_date_added":null,"published":"2026-06-11"},{"cvss_score":7.7,"headline":"tmp: Path Traversal via unsanitized prefix/postfix enables directory escape","id":"CVE-2026-44705","kev_date_added":null,"published":"2026-06-11"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["raszi"]},"summary":"Attackers can write arbitrary files or directories via symbolic link manipulation in the tmp library, potentially leading to code execution or data modification.","url":"https://insights.sbomify.com/CVE-2025-54798/"}