Skip to content

Potential fix for code scanning alert no. 6: Use of insecure SSL/TLS version#2

Merged
xdrew87 merged 1 commit into
mainfrom
alert-autofix-6
May 13, 2026
Merged

Potential fix for code scanning alert no. 6: Use of insecure SSL/TLS version#2
xdrew87 merged 1 commit into
mainfrom
alert-autofix-6

Conversation

@xdrew87

@xdrew87 xdrew87 commented May 13, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/xdrew87/Xiom/security/code-scanning/6

Set an explicit minimum TLS version on the SSL context in _get_ssl_info so TLS 1.0/1.1 cannot be negotiated.

Best single fix (without changing functionality): in xiom.py inside _get_ssl_info (around lines 185–188), keep using ssl.create_default_context() but add:

  • context.minimum_version = ssl.TLSVersion.TLSv1_2

This preserves the current behavior (including disabled hostname verification and no cert verification used for passive cert collection), while ensuring only modern TLS is used.

No new imports or dependencies are required since ssl is already imported.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…version

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@xdrew87 xdrew87 marked this pull request as ready for review May 13, 2026 15:36
@xdrew87 xdrew87 merged commit d58d956 into main May 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant