PYSEC-2026-3855

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/kas/PYSEC-2026-3855.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-3855
Aliases
Published
2026-09-10T09:44:57Z
Modified
2026-09-10T12:15:09Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
kas Persistently Disables SSH Host Key Checking
Details

Summary

kas persistently disables SSH host key checking for the invoking user when internal SSH key setup is triggered via SSH_PRIVATE_KEY or SSH_PRIVATE_KEY_FILE and no user-specific SSH configuration file exists so far.

When this path is used, kas creates ~/.ssh/config with a global Host * rule containing StrictHostKeyChecking no. This was intended to ease the use of kas in short-lived CI environments that lack a pre-configured set of known hosts. In case a local user had no SSH configuration file so far, this approach weakens SSH host authenticity verification beyond the lifetime and scope of the kas command, increasing the risk of successful man-in-the-middle attacks against future SSH connections made by the same user.

Patches

Such SSH configurations were created since the very first public release. The issue is addressed now by commit which is part of kas version 5.4.

Workarounds

Since kas 2.6.3, a local user's SSH configuration is only written if it didn't exist before. From that version on, the issue can be avoided by creating an own ~/.ssh/config prior to calling kas. If kas was already called, ~/.ssh/config should be inspected and undesired settings created by kas should be removed.

References

Affected packages

PyPI / kas

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
5.4

Affected versions

0.*
0.11.0
0.13.0
0.14.0
0.15.0
0.16.1
0.17.0
0.18.0
0.19.0
0.20.0
0.20.1
1.*
1.0
1.1
2.*
2.0
2.1
2.1.1
2.2
2.3
2.3.1
2.3.2
2.3.3
2.4
2.5
2.6
2.6.1
2.6.2
2.6.3
3.*
3.0
3.0.1
3.0.2
3.1
3.2
3.2.1
3.2.2
3.2.3
3.3
4.*
4.0
4.1
4.2
4.3
4.3.1
4.3.2
4.4
4.5
4.6
4.7
4.8
4.8.1
4.8.2
5.*
5.0
5.1
5.2
5.3

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/kas/PYSEC-2026-3855.yaml"