{"answers":{"affected":"3 open source packages ship an affected version, including psd-tools.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49836 exists.","fix":"Upgrade psd-tools to 1.17.1 or later.","what":"CVE-2026-49836 is a medium-severity path traversal vulnerability in psd-tools, published on 10 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-49836 and fix it if it is affected.\n\nWhat it is: CVE-2026-49836 is a medium-severity path traversal vulnerability in psd-tools, published on 10 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49836 exists.\n\nAffected packages and fixed versions:\n- psd-tools (PyPI): affected all versions; fixed in 1.17.1\n- psd-tools (PyPI): affected all versions; fixed in 1.17.1\n- psd-tools (PyPI): affected all versions; fixed in 1.17.1\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-2026-49836/ (Markdown: https://insights.sbomify.com/CVE-2026-49836/index.md)","id":"CVE-2026-49836","markdown":"https://insights.sbomify.com/CVE-2026-49836/index.md","name":"CVE-2026-49836","record":{"aliases":["DEBIAN-CVE-2026-49836","GHSA-2rmg-vrx8-9j2f","PYSEC-2026-2969","UBUNTU-CVE-2026-49836"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python PSD library","requires_auth":"none","summary":"Attackers can exploit malicious PSD files to write arbitrary files or read sensitive data via path traversal in psd-tools.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.6,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"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":"psd-tools is a Python package for working with Adobe Photoshop PSD files. Prior to version 1.17.1, `SmartObject.save()` writes an embedded smart object to a path taken verbatim from the PSD file. Because that name is attacker-controlled and unsanitised, a tool that extracts embedded objects from an untrusted `.psd` can be made to write attacker-chosen bytes to an attacker-chosen path (absolute or `../`-traversing), outside its intended output directory. A secondary issue in `SmartObject.open()` for external-kind smart objects allows the attacker-controlled `fullPath` descriptor to be used as an arbitrary file read path, enabling exfiltration of the read content to the controlled write destination. Both issues are fixed in v1.17.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"psd-tools: arbitrary file write via smart-object filename","id":"CVE-2026-49836","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"GoBGP: BGP OPEN capability parser may read capability values outside declared CapLen boundaries","id":"CVE-2026-49837"},"packages":[{"ecosystem":"PyPI","fixed":["1.17.1"],"introduced":["0"],"last_affected":[],"package":"psd-tools","purl":null,"source":"GHSA-2rmg-vrx8-9j2f"},{"ecosystem":"PyPI","fixed":["1.17.1"],"introduced":["0"],"last_affected":[],"package":"psd-tools","purl":"pkg:pypi/psd-tools","source":"GHSA-2rmg-vrx8-9j2f"},{"ecosystem":"PyPI","fixed":["1.17.1"],"introduced":["0"],"last_affected":[],"package":"psd-tools","purl":"pkg:pypi/psd-tools","source":"PYSEC-2026-2969"}],"prev":{"headline":"Sigstore Timestamp Authority: OOM due to unbounded metric label cardinality","id":"CVE-2026-49835"},"products":["psd-tools"],"published":"2026-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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"2026-09-11","vendors":["psd-tools"]},"summary":"Attackers can exploit malicious PSD files to write arbitrary files or read sensitive data via path traversal in psd-tools.","url":"https://insights.sbomify.com/CVE-2026-49836/"}