Skip to main content
CVE-2026-58203VulnerabilityPublished

snyk-agent-scan · pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and

Affects snyk-agent-scanSource GCVE Database

0
Authoritative record:CVE-2026-58203· Medium 5.3

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewsnyk-agent-scanpkg:brew/snyk-agent-scanOther threatsAffected
  • >=0.4.3 <0.5.11_1
Fixed in
  • 0.5.11_1

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.

References

Community reviews

Loading reviews…