snyk-agent-scan · pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and
Affects snyk-agent-scanSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.5.11_1 when convenient.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.11_1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 6 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade snyk-agent-scan to 0.5.11_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsnyk-agent-scanpkg:brew/snyk-agent-scanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to pydantic-settings version 2.14.2 or later, which fixes the vulnerability by restricting directory traversal to within the secrets_dir, using a single cycle-safe iterator for size checks and loading, and skipping files whose resolved paths escape the secrets_dir. If upgrading is not possible immediately, ensure the secrets_dir is fully controlled by the application with no writable or attacker-influenced entries, or disable secrets_nested_subdir=True.
Description
CVE-2026-58203 affects pydantic-settings versions >=0.4.3 and <0.5.11_1, where NestedSecretsSettingsSource with secrets_nested_subdir=True follows symbolic links outside the configured secrets_dir. This allows local files outside the intended directory to be read into settings, bypassing the secrets_dir_max_size limit. The vulnerability requires the ability to place symlinks inside the secrets directory and is not remotely exploitable by itself. The issue is fixed in pydantic-settings 2.14.2 by restricting directory traversal and consistent size accounting.