cycode · pydantic-settings: NestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and
Affects cycodeSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 3.16.2_1 when convenient.
Data as of 19 Nov 2026, 19:39 UTC
- Patch
- Available – fixed in 3.16.2_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
Weaponized: 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 18 Nov 2026.
What to do
Upgrade cycode to 3.16.2_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewcycodepkg:brew/cycodeOther 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 3.16.2_1 or later, which fixes the vulnerability by restricting directory traversal to within the configured secrets_dir and unifying size checking and loading logic. If upgrading is not immediately possible, ensure the secrets_dir is fully controlled and not writable by untrusted users or components, or disable secrets_nested_subdir to avoid following symlinks.
Description
The pydantic-settings library's NestedSecretsSettingsSource component improperly follows symbolic links inside a configured secrets directory that point outside this directory. This allows reading files outside the intended secrets directory into application settings, bypassing the configured maximum size limit for secrets loading. The vulnerability requires the ability to place symlinks inside the secrets directory and is not remotely exploitable by itself. It affects versions from 3.7.0 up to but not including 3.16.2_1. A fix is available in version 3.16.2_1 that restricts directory traversal to within the secrets directory and unifies size checking and loading logic to prevent symlink bypasses.