Safeguard
Tag

python-security

Safeguard articles tagged "python-security" — guides, analysis, and best practices for software supply chain and application security.

96 articles

DevSecOps

Choosing a Python Tool for Security: Scanning and Hardening Python Code

The right Python tool depends on what you are trying to catch: bugs in your own code, vulnerable dependencies, or leaked secrets. Here is how the categories fit together.

Jun 6, 20266 min read
Open Source Security

Dependency Confusion Attacks Five Years Later: Are Enterp...

Five years after Alex Birsan's $130K dependency confusion disclosure, real attacks like PyTorch's torchtriton incident show the flaw is still live. Here's what's actually fixed.

May 29, 20266 min read
Application Security

Python security best practices cheat sheet

A no-fluff cheat sheet of concrete Python security fixes—dependency pinning, pickle/eval risks, PyPI trust signals, and CI gates—with real CVEs and commands.

May 28, 20261 min read
DevSecOps

How to Choose a Python Code Checker for Secure Code

A Python code checker is more than a linter. Here is how the layers fit together, which open-source tools do what, and where online checkers help and hurt.

May 25, 20266 min read
Application Security

How to secure Python Flask applications

Flask ships without built-in CSRF, headers, or session hardening. Here's how real CVEs like debug-mode RCE and cookie forgery get exploited—and stopped.

May 25, 20266 min read
Application Security

Securing Django applications from common vulnerabilities

Django's secure-by-default reputation hides real gaps: SQL injection via Trunc()/Extract(), ReDoS in Truncator, and misconfigured DEBUG settings still cause incidents.

May 25, 20266 min read
Application Security

The ultimate guide to creating a secure Python package

A concrete, numbers-first guide to locking dependencies, signing releases, and scanning for CVEs when building a secure Python package.

May 22, 20266 min read
Application Security

Using Python libraries for secure network communication

A look at requests, urllib3, cryptography, and paramiko: real CVEs (Terrapin, header leaks), insecure defaults, and how to pin them safely.

May 21, 20266 min read
Open Source

Is python-docx Safe? A Security Guide

python-docx reads and writes Word documents in Python. Here is what its security posture actually depends on, especially when you open files you did not create.

May 20, 20266 min read
DevSecOps

How to Build a Secure Python URL Validator (and Avoid SSRF)

A Python URL validator has to do more than match a regex. Here is how to validate URLs safely, block SSRF, and pick between urllib, validators, and Pydantic.

May 12, 20266 min read
Security

CVE-2022-2309: The lxml NULL Pointer Dereference DoS Explained

CVE-2022-2309 crashes lxml applications through a NULL pointer dereference in iterwalk. Here is the affected version matrix and how to remediate it.

May 8, 20265 min read
DevSecOps

Python Pickle Load: A Security Guide

Calling python pickle load on data you do not fully control can execute arbitrary code. Here is why, and what to use instead.

May 3, 20265 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

python-security (Page 6) — Safeguard Blog