{"answers":{"affected":"2 open source packages ship an affected version, including pydantic-settings. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58203 exists.","fix":"Upgrade pydantic-settings to 2.14.2 or later.","what":"CVE-2026-58203 is a medium-severity path traversal vulnerability in pydantic-settings, published on 6 Jul 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-58203 and fix it if it is affected.\n\nWhat it is: CVE-2026-58203 is a medium-severity path traversal vulnerability in pydantic-settings, published on 6 Jul 2026. 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-2026-58203 exists.\n\nAffected packages and fixed versions:\n- pydantic-settings (PyPI): affected from 2.12.0; fixed in 2.14.2\n- pydantic-settings (PyPI): affected from 2.12.0; fixed in 2.14.2\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-58203/ (Markdown: https://insights.sbomify.com/CVE-2026-58203/index.md)","id":"CVE-2026-58203","markdown":"https://insights.sbomify.com/CVE-2026-58203/index.md","name":"CVE-2026-58203","record":{"aliases":["CLEANSTART-2026-OQ12985","CLEANSTART-2026-UR05991","DEBIAN-CVE-2026-58203","ECHO-c128-4f87-8dda","GHSA-4xgf-cpjx-pc3j","MGASA-2026-0260","MINI-2j6g-5jp8-5f5q","MINI-46xm-7qx5-6qv7","MINI-55j6-fpf6-w4pg","MINI-56m4-3h7f-fr84","MINI-5f98-5r5p-26jg","MINI-5jg6-42p3-fv5g","MINI-6pp3-65rc-h84f","MINI-7hp3-qmq8-hw2p","MINI-8g7w-8x9q-jpwf","MINI-9xrc-w34r-mmhf","MINI-c9qw-hc4m-pj99","MINI-chrr-vqgp-47w8","MINI-fv4j-xr45-7jrf","MINI-m35r-m6r5-2jrv","MINI-pc9x-pv8g-g98r","MINI-pg37-vppx-w2gr","MINI-r2vm-c8m9-wpp7","ROOT-APP-PYPI-GHSA-4xgf-cpjx-pc3j","UBUNTU-CVE-2026-58203"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Python settings library","requires_auth":"low_privilege","summary":"Attackers with write access to the secrets directory can use symlinks to read arbitrary local files and bypass size limits in pydantic-settings.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pydantic-settings","vendor":"pydantic"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"pydantic-settings provides settings management using Pydantic. From 2.12.0 until 2.14.2, NestedSecretsSettingsSource reads secret values from files in a configured secrets_dir. When secrets_nested_subdir=True, a directory entry inside secrets_dir that is a symbolic link pointing outside secrets_dir is followed, so files outside the configured directory are read into settings values. The same code path bypasses the documented secrets_dir_max_size protection. An attacker or lower-privileged component able to influence entries in the configured secrets directory (for example, a writable or shared secrets mount) can turn this into an unintended local file read into settings and can defeat the advertised loading-size cap.  This vulnerability is fixed in 2.14.2.","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":"pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_size","id":"CVE-2026-58203","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"GRR has a Reflected XSS issue","id":"CVE-2026-58205"},"packages":[{"ecosystem":"PyPI","fixed":["2.14.2"],"introduced":["2.12.0"],"last_affected":[],"package":"pydantic-settings","purl":null,"source":"GHSA-4xgf-cpjx-pc3j"},{"ecosystem":"PyPI","fixed":["2.14.2"],"introduced":["2.12.0"],"last_affected":[],"package":"pydantic-settings","purl":"pkg:pypi/pydantic-settings","source":"GHSA-4xgf-cpjx-pc3j"}],"prev":{"headline":"OpenReception's appointment booking software provides an end-to-end encrypted appointment booking platform.","id":"CVE-2026-58202"},"products":["pydantic-settings"],"published":"2026-07-06","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":"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":"2026-07-06","vendors":["pydantic"]},"summary":"Attackers with write access to the secrets directory can use symlinks to read arbitrary local files and bypass size limits in pydantic-settings.","url":"https://insights.sbomify.com/CVE-2026-58203/"}