{"answers":{"affected":"3 open source packages ship an affected version, including banks.","exploited":"There is no known exploitation of CVE-2026-107716 in the wild and no public exploit code.","fix":"Upgrade banks to 2.5.1 or later.","what":"CVE-2026-107716 is a high-severity path traversal vulnerability in masci banks, published on 8 Oct 2026. 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-2026-107716 and fix it if it is affected.\n\nWhat it is: CVE-2026-107716 is a high-severity path traversal vulnerability in masci banks, published on 8 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-107716 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- banks (PyPI): affected all versions; fixed in 2.5.1\n- banks (PyPI): affected all versions; fixed in 2.5.1\n- banks (PyPI): affected all versions; fixed in 2.5.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-107716/ (Markdown: https://insights.sbomify.com/CVE-2026-107716/index.md)","id":"CVE-2026-107716","markdown":"https://insights.sbomify.com/CVE-2026-107716/index.md","name":"CVE-2026-107716","record":{"aliases":["GHSA-556j-vv39-8rqv","PYSEC-2026-4201"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python LLM prompt library","requires_auth":"low_privilege","summary":"Attackers with influence over the prompt directory can use symlinks to read or overwrite arbitrary files outside the registry root.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Banks generates meaningful LLM prompts using a simple template language. Prior to 2.5.1, Banks DirectoryPromptRegistry does not reject symbolic links for index.json or discovered and existing .jinja prompt files. In an application where untrusted users can influence a prompt directory, DirectoryPromptRegistry._scan() and DirectoryPromptRegistry.get() can follow a link outside the registry root and disclose a file, while DirectoryPromptRegistry.set(), DirectoryPromptRegistry._save(), and DirectoryPromptRegistry._load() can read or overwrite an external link target. The issue requires attacker influence over the registry directory or its extracted contents. This issue is fixed in version 2.5.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry","id":"CVE-2026-107716","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":"Banks: User-controlled prompt input can be parsed as privileged chat messages","id":"CVE-2026-107717"},"packages":[{"ecosystem":"PyPI","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"banks","purl":null,"source":"GHSA-556j-vv39-8rqv"},{"ecosystem":"PyPI","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"banks","purl":"pkg:pypi/banks","source":"GHSA-556j-vv39-8rqv"},{"ecosystem":"PyPI","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"banks","purl":"pkg:pypi/banks","source":"PYSEC-2026-4201"}],"prev":{"headline":"Mechanize sends credential headers to another host after an HTTP redirect","id":"CVE-2026-107715"},"products":["banks"],"published":"2026-10-08","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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-09","vendors":["masci"]},"summary":"Attackers with influence over the prompt directory can use symlinks to read or overwrite arbitrary files outside the registry root.","url":"https://insights.sbomify.com/CVE-2026-107716/"}