VDB
Sign up
MEDIUM5.6

PYSEC-2026-1895

Salt's file contents overwrite the VirtKey class

Quick fix

PYSEC-2026-1895 — salt: upgrade to the fixed version with the command below.

pip install --upgrade 'salt>=3006.12'

Details

File contents overwrite the VirtKey class is called when “on-demand pillar” data is requested and uses un-validated input to create paths to the “pki directory”. The functionality is used to auto-accept Minion authentication keys based on a pre-placed “authorization file” at a specific location and is present in the default configuration.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/salt
Introduced in: 3007.0rc1Fixed in: 3007.4
Fixpip install --upgrade 'salt>=3006.12'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/salt"]}'