Python
Python has become one of the most widely used languages in cybersecurity — from writing exploit scripts and automation tools to building security scanners and processing large datasets. Its readability, extensive standard library, and rich ecosystem of security-focused packages make it the go-to language for security professionals.
In application security, Python appears on both sides: as the language used to build web applications (Django, Flask, FastAPI) and as the primary tool for testing them. Common Python security concerns include unsafe deserialization with pickle, command injection through os.system() and subprocess, SSTI in Jinja2 templates, path traversal in file operations, and SSRF in HTTP libraries like requests.
For offensive security, Python powers many essential tools — from Burp extensions and custom fuzzers to reverse shells and exploit proof-of-concepts. Libraries like pwntools, scapy, and impacket are staples in penetration testing. For defensive security, Python is used to build SIEM integrations, log analyzers, and automated incident response workflows.
This page collects Python security resources covering both secure coding practices for Python applications and Python-based security tooling for offensive and defensive work.
python.org
Python sits on both sides of this library
Two distinct bodies of work end up under this tag, and it helps to know which one you are reading. The first is Python as the language security work is written in: request handling, parsing, concurrency, and the small details that separate a script that works once from a tool you can point at a thousand hosts. The second is Python as an attack surface — the features and libraries that introduce vulnerabilities into applications written in it.
On the second: Python's dangerous edges are mostly about evaluation and
deserialization. pickle executes code by design, which makes any
pickle from an untrusted source equivalent to remote code execution, and it
still turns up in caches, session stores and message queues.
eval and exec need no explanation;
yaml.load without a safe loader is the same bug wearing a
configuration file. Format-string and f-string constructs that touch attacker
input can reach object internals. Subprocess calls with
shell=True are command injection whenever the argument is not
fully controlled. Jinja2 SSTI is common enough that it has its own topic on
this site, and the escape chains there run through exactly these primitives.
Packaging deserves its own attention. Installing a package runs its build code, dependency confusion against internal index names is a live technique rather than a theoretical one, and typosquatted names on PyPI are a recurring event. If you write Python tooling, pinning and hash-checking your own dependencies is security work, not hygiene theatre.
For tool building, the material here leans practical: async and threading
for scanning at scale, working with requests and raw sockets when
you need control over what goes on the wire, parsing hostile input without
crashing, and building Burp extensions or standalone utilities that fit an
existing workflow. If you are new, start with the tooling pieces — writing a
small scanner teaches the protocol details faster than reading about them.
| Date Added | Link | Excerpt |
|---|---|---|
| 2026-11-27 NEW 2026 | Microsoft's agent-framework Hijacked on PyPI via Silent .pth Startup Hook news 7 min read Secrets Supply Chain | Microsoft's agent-framework PyPI package was hijacked through malicious .pth startup hooks in versions 1.26.1 and 1.26.2, releasing a silent credential stealer upon Python startup. The attacker repacked the clean wheel locally and injected code that exfiltrated environment variables and files containing sensitive cloud credentials from various cloud providers and LLM services. The compromised package, downloaded approximately 40,000 times weekly, requires immediate action for any environment that installed these versions, treating all accessible credentials as compromised. → research.jfrog.com |
| 2026-11-26 NEW 2026 | Team-Check walkthrough (GlacierCTF 2026): SSTI to RCE intermediate 1 min read RCE SSTI | Walkthrough of the Team-Check challenge from GlacierCTF 2026, demonstrating a Server-Side Template Injection (SSTI) vulnerability in a Flask application. The writeup details how to bypass the `{{}}` filter using `{%%}` and leverage `render_template_string`'s `__mro__` and `__subclasses__` to locate and exploit the `subprocess.Popen` class. This ultimately leads to Remote Code Execution (RCE) for obtaining the flag. |
| 2026-11-26 NEW 2026 | Treat every subprocess as an untrusted boundary in Python intermediate 9 min read RCE | Python subprocesses can be treated as untrusted boundaries by ensuring robust handling of arguments, environment, and output. This library approach emphasizes passing argument vectors rather than command strings with `shell=False` to prevent injection vulnerabilities. It advocates for explicit timeouts, capturing and processing output intelligently (e.g., redirecting large outputs to files), and centralizing subprocess execution logic into a reusable runner function that translates potential failures into application-specific errors for better diagnostics and control. |
| 2026-11-26 NEW 2026 | Your MCP Server Is an Attacker's Dream (XtremePython 2026) beginner AI Talks | This XtremePython 2026 session explores the security vulnerabilities of MCP servers. It highlights how these servers can inadvertently become entry points for attackers seeking to compromise AI agents. The presentation emphasizes the critical need to assess and enhance MCP server security to prevent such exploitation. |
| 2026-11-26 NEW 2026 | ObsPy pickle deserialization vulnerability (auto format detection) news 4 min read Deser | ObsPy pickle deserialization vulnerability allows arbitrary code execution when automatic file format detection attempts to read malicious pickle files. Versions prior to 1.5.2 are affected as the "PICKLE" format, which uses the insecure `pickle` module, is included in this detection process. Users should update to ObsPy 1.5.2 or later, which skips "PICKLE" during automatic detection, or apply a manual patch to disable pickle format detection entirely. |
| 2026-11-26 NEW 2026 | CrewAI CVE-2026-120630: parser-differential SSRF in ScrapeWebsiteTool news 4 min read AI SSRF | CrewAI CVE-2026-120630 involves a parser-differential server-side request forgery (SSRF) vulnerability in the `ScrapeWebsiteTool`. This flaw arises because CrewAI's SSRF guard and its HTTP client parse URLs differently, allowing malicious requests to reach internal hosts even after the guard seemingly denies them. Affected versions are before 1.15.17, with crewai-tools 1.15.17 containing the fix. The vulnerability leverages parser discrepancies, where one parser allows a URL with a backslash to be considered valid, while the client's parser then connects to an unintended internal address. |
| 2026-11-26 NEW 2026 | CVE-2026-134795: graphql-core denial of service news GraphQL | CVE-2026-134795 in graphql-core versions 3.2.12 before 3.2.14 and 3.3.0rc1 before 3.3.2 allows unauthenticated attackers to cause a denial of service by submitting GraphQL documents with long runs of comments. These comments bypass parser limit checks by being fully tokenized by Lexer.lookahead, consuming excessive CPU and memory based on document size. |
| 2026-11-25 NEW 2026 | Reconic: automated recon orchestrating Subfinder, Katana, Nuclei and httpx intermediate 5 min read Bug Bounty Recon | Library for orchestrating reconnaissance tools like Subfinder, Katana, Nuclei, and httpx. Reconic manages the workflow, handles scope, tracks changes between runs, and provides notifications for new findings. It allows for passive enumeration, active scanning, and scheduled monitoring, with detailed reporting of discovered hosts, endpoints, and vulnerabilities, and supports custom headers and proxy configurations. |
| 2026-11-25 NEW 2026 | Microsoft's agent-framework on PyPI was hijacked: what to check news 16 min read Secrets Supply Chain | Microsoft's agent-framework Python package on PyPI was hijacked with two malicious releases, 1.26.1 and 1.26.2, uploaded on November 17, 2026. These versions contained a credential stealer that ran on Python startup, targeting environment variables, credential files, and cloud tokens. The malware sent stolen data to webhook.site. Systems that installed agent-framework without a pinned version between 20:35 and 21:30 UTC on that date are at risk. |
| 2026-11-25 NEW 2026 | Microsoft agent-framework compromised twice on PyPI news 7 min read AI Secrets Supply Chain | Two malicious releases of Microsoft's agent-framework Python metapackage on PyPI, versions 1.26.1 and 1.26.2, were compromised to steal credentials. The malware, executed via a .pth file at interpreter startup, exfiltrated environment variables, credential files, and actively requested new tokens from Azure DevOps, Azure managed identity, and GitHub Actions, before sending them to an exfiltration endpoint. SafeDep flagged the first malicious version shortly after its release, yet a subsequent malicious version was still published. |
| 2026-11-24 NEW 2026 | Seventeen days after the letters: npm and PyPI malware feeds, measured again news 12 min read Supply Chain | Survey of npm and PyPI malware feed accuracy, re-measuring packages seventeen days after initial notifications. This analysis tracks registry actions, identifies errors in automated scanners like Amazon Inspector and OpenSSF, and highlights new techniques for temporary package placeholders. It also details specific instances where PyPI and npm failed to act on flagged malicious packages and examines the self-correction capabilities of feeds like Vulnetix. |
| 2026-11-24 NEW 2026 | We caught the agent-framework PyPI compromise six minutes after it published news 7 min read AI Secrets Supply Chain | Agent-framework versions 1.26.1 and 1.26.2 on PyPI were compromised, stealing Azure, Azure DevOps, and GitHub Actions tokens by using a `.pth` startup hook. This hook ran on every Python launch, exfiltrating environment variables, credential files, Azure DevOps OIDC tokens, and Azure managed identity tokens via the Instance Metadata Service to a webhook. The compromise was detected and mitigated within minutes of publication. |
| 2026-11-24 NEW 2026 | USN-9177-1: PyJWT non-canonical signature vulnerability news JWT | Advisory for USN-9177-1 detailing a PyJWT vulnerability where non-canonical signature encodings were accepted, potentially allowing attackers to bypass token revocation checks. This issue impacts systems running affected versions of PyJWT and requires updating to corrected package versions to mitigate the risk. |
| 2026-11-23 NEW 2026 | Loading a Dataset Should Not Run Code intermediate 1 min read Deser RCE | CVE-2026-132751 in yt data loading allows arbitrary code execution when loading a crafted ytdata .h5 file. The vulnerability stems from the use of `eval()` on the `con_args` parameter, which is loaded directly from the HDF5 file without proper validation. This means loading a saved dataset effectively runs arbitrary Python code from the file's author, a critical CWE-95, eval injection flaw. Affected versions up to 4.4.4 are impacted, with fixes available in later releases. |
| 2026-11-23 NEW 2026 | How to Prevent Prompt Injection in Python LLM Apps: 6 Layers That Actually Help intermediate 7 min read AI | Prompt injection in Python LLM apps can be mitigated through a layered defense strategy, as complete prevention is not feasible. This approach advocates for separating instructions from untrusted data, treating retrieved documents as untrusted by cleaning and labeling them, enforcing least privilege for tool usage with argument validation and human approval for sensitive actions, and meticulously checking model output for vulnerabilities like exfiltrative image URLs or improper source citations. The presented techniques, demonstrated with runnable Python code and a simulated LLM, aim to make attacks more difficult and reduce their impact when they occur, aligning with OWASP's LLM01 classification. |
| 2026-11-23 NEW 2026 | Microsoft’s AI Agent Package Was Hijacked on PyPI: Here’s How to Check If You’re Affected news 5 min read AI Supply Chain | Microsoft’s agent-framework PyPI package was hijacked with poisoned versions 1.26.1 and 1.26.2, which installed a credential stealer via a `.pth` file that ran on every Python startup, even if the package wasn't imported. The malware targeted developer laptops and CI runners, stealing cloud credentials and tokens for Azure, AWS, and GitHub. Affected users should check for these versions, rotate all exposed secrets, and rebuild compromised environments. |
| 2026-11-23 NEW 2026 | The Credential Was Valid. The Publisher Was Not. news 9 min read AI Supply Chain | Microsoft's agent-framework Python package on PyPI was compromised, with versions 1.26.1 and 1.26.2 distributing credential-stealing malware for a short period on November 17, 2026. The malicious code exploited Python's `.pth` file mechanism to capture a wide range of cloud and CI credentials, including Azure CLI, npm, pip, Git, Docker, and Azure DevOps configurations, sending them to an attacker-controlled webhook.site address. Analysis of the exfiltrated data, incidentally captured by the attacker's chosen public service, revealed the use of the "Cairn" AI penetration-testing framework and provided insights into the attacker's tooling, though the exact compromise vector remains unconfirmed, with hypotheses ranging from a compromised signing certificate to stolen PyPI upload credentials. |
| 2026-11-23 NEW 2026 | FortiPy: SSTI to root writeup intermediate RCE SSTI | This writeup details a successful exploit chain on FortiPy, a Python framework often used in enterprise environments. The process involved a Server-Side Template Injection (SSTI) vulnerability, which allowed for initial code execution. This was then escalated to achieve root privileges on the underlying system. The writeup likely provides a step-by-step breakdown of how the SSTI was discovered and leveraged to gain full control. |
| 2026-11-22 2026 | Arize Phoenix CVE-2026-53998: GraphQL format-string secrets leak news 6 min read AI GraphQL Secrets | Advisory for CVE-2026-53998 details a critical format string injection vulnerability in the Arize Phoenix AI observability platform. Versions 13.0.0 through 15.7.0 (excluding 15.7.0) are affected, allowing an unauthenticated attacker via the `applyChatTemplate` GraphQL query to access environment variables and secrets like `PHOENIX_SECRET`. This can lead to session token forgery and decryption of stored credentials, including LLM API keys. The fix involves upgrading to version 15.7.0 and rotating exposed secrets and keys. |
| 2026-11-22 2026 | PyPI's redesigned project pages with clearer security signals are now live news 5 min read Supply Chain | Library updates on PyPI's project pages now highlight security signals, including release provenance states and per-file attestations. These improvements, guided by the OpenSSF Attestations Style Guide, clarify package origins with "Full Provenance" (verifying 100% of files via PyPI Publish or SLSA Build attestations) and "No Provenance" indicators. Warnings are also surfaced for unusual or conflicting metadata, prompting users to investigate potential account takeovers or compromised build pipelines. The redesigned interface features a dedicated security tab and updated project detail, release files, and release history views to aid users in assessing package security. |
| 2026-11-22 2026 | python-jose JWT forgery with an empty HMAC key (CVE-2026-120459) news 10 min read AuthN JWT | CVE-2026-120459 in python-jose allows JWT forgery when using HS256, HS384, or HS512 algorithms with an empty HMAC key. All versions up to 3.5.0 are affected, and the vulnerability has a CVSS v4.0 score of 9.1 Critical. Attackers can forge claims in tokens if an application's verification key resolves to an empty string, empty bytes, or an empty JWK `k` member, potentially leading to unauthorized access or privilege escalation. |
| 2026-11-22 2026 | CPython 0-days threaten the AI supply chain (Jinja model-template sandbox escape) advanced 8 min read AI SSTI Supply Chain | CPython 0-day vulnerabilities enable sandbox escapes within AI supply chains. A memory-safety flaw in the CPython interpreter, specifically an abuse of generic type handling, allows attackers to break out of Jinja chat template sandboxes. This exploit can lead to arbitrary code execution on AI inference platforms, posing a significant risk to enterprises relying on LLMs and cloud infrastructure. |
| 2026-11-22 2026 | Poet writeup: LFI to forged cookie to Jinja2 SSTI RCE intermediate 5 min read RCE SSTI | LFI to forged cookie to Jinja2 SSTI RCE details a security vulnerability chain on a Linux machine running a Flask "Note Library" application. Exploitation begins with Local File Inclusion (LFI) on the download endpoint to leak an environment variable containing a secret. This secret is then used to forge an authentication cookie, granting access to an admin panel. Within the admin panel, Jinja2 Server-Side Template Injection (SSTI) allows for remote code execution and a reverse shell. Privilege escalation is achieved through a custom SUID binary that can write files to arbitrary paths as root, enabling the addition of a new root user to `/etc/passwd`. |
| 2026-11-22 2026 | HackSmarter Casino walkthrough: leaked source-map API to Flask SSTI intermediate 4 min read SSTI | Walkthrough detailing the compromise of the "Hack Smarter World" luxury resort's Linux box. This writeup covers exploiting a leaked JS source map to discover a hidden API, which then reveals valid guest credentials. The subsequent Server-Side Template Injection (SSTI) in the profile page leads to code execution, and a chain of sloppy file permissions and exposed credentials in logs and shell history ultimately grants root access. |
| 2026-11-21 2026 | Pwn for fun: path traversal bypass using NFKD in sanitize-filename on PyPI intermediate RCE | A path traversal vulnerability has been discovered in the `sanitize-filename` Python package on PyPI. The vulnerability, dubbed "Pwn for fun," can be bypassed using NFKD (Compatibility Decomposition) encoding. This allows malicious actors to potentially access or modify files outside of intended directories. → yeswehack.com |
| 2026-11-21 2026 | Plug-and-Play Authentication with Keycloak in Python intermediate 5 min read AuthN JWT | Keycloak Connector for Python provides a lightweight, framework-agnostic library to integrate enterprise-grade authentication into web applications. It encapsulates the OAuth 2.0 / OpenID Connect lifecycle, handling complex tasks like PKCE, CSRF protection, and token management with minimal boilerplate. This plug-and-play approach allows developers to delegate identity and access management responsibilities to Keycloak, a robust open-source IAM solution, enabling secure Single Sign-On (SSO) with just a few lines of integration code. |
| 2026-11-21 2026 | How to Handle Secrets in Python: Six Secure Patterns intermediate 18 min read Secrets | Python secrets management can be improved by implementing six secure patterns, including using `.env` files with `python-dotenv` for local development, JSON configuration files, and environment variables for broader deployment. For production, cloud-managed solutions like AWS Secrets Manager, Google Cloud Secret Manager, Azure Key Vault, or HashiCorp Vault are recommended, authenticated by role. Additionally, utilizing Pydantic's `SecretStr` prevents accidental logging of sensitive data, and the `secrets` module offers secure token generation. Regular rotation and scanning for exposed credentials are crucial, as over 64% of valid secrets from 2022 remained so in early 2026. → blog.gitguardian.com |
| 2026-11-21 2026 | Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials news 3 min read AI Supply Chain | Attackers compromised Microsoft's agent-framework PyPI package, versions 1.26.1 and 1.26.2, to deploy a credential stealer. These malicious versions execute Python startup hooks that silently collect and exfiltrate environment variables, cloud identity tokens, and sensitive credential files to a webhook. The stealer runs on every interpreter start by dropping a `.pth` file, impacting environments even without explicit package imports. This incident highlights the targeting of AI developer ecosystems and CI pipelines, with Microsoft subsequently making some repositories private for investigation. → thehackernews.com |
| 2026-11-21 2026 | Arize Phoenix CVE-2026-53998: one unauthenticated GraphQL query reads os.environ via f-string template news 7 min read AI GraphQL Secrets SSTI | CVE-2026-53998 in `arize-phoenix` versions `>= 13.0.0, < 15.7.0` allows unauthenticated GraphQL queries to disclose environment variables via f-string template rendering. The vulnerability arises from Python's `str.format()` being used to render chat templates, enabling attackers to traverse object attributes and access the `os.environ`. This can lead to the exposure of sensitive secrets like `PHOENIX_SECRET`, used for JWT signing and credential encryption. Upgrade to `arize-phoenix` 15.7.0 or later, rotate secrets, and enable authentication to mitigate. → corgea.com |
| 2026-11-20 2026 | Microsoft’s Agent Framework PyPI package compromised to steal credentials news 2 min read AI Supply Chain | Microsoft's Agent Framework Python package on PyPI was compromised with malicious versions 1.26.1 and 1.26.2, designed to steal cloud credentials from developer systems. These versions executed a credential stealer upon Python startup, targeting sensitive information from environment variables and configuration files, including tokens for Azure, AWS, and GitHub. The compromised package was quickly quarantined by PyPI, but the incident highlights supply chain risks for popular developer tools. → bleepingcomputer.com |
| 2026-11-20 2026 | webrecon-cli: DNS, subdomain, HTTP, TLS and port recon scanner beginner 5 min read Recon | Tool for web reconnaissance, `webrecon-cli` offers asynchronous DNS enumeration, subdomain discovery, HTTP fingerprinting, technology detection, TLS certificate inspection, and TCP port scanning. It provides JSON, terminal, and HTML reports with features like rate limiting, explicit scope enforcement, and content discovery that avoids soft 404s. The tool supports custom wordlists, flexible output formatting, and secure handling of sensitive report data. → pypi.org |
| 2026-11-19 2026 | Microsoft agent-framework PyPI Package Compromised news 8 min read Supply Chain | Microsoft agent-framework PyPI package versions 1.26.1 and 1.26.2 were compromised with a credential-stealing payload delivered via a .pth startup hook. This payload executes during Python startup, harvesting environment variables, credential files, and minting identity tokens from GitHub Actions OIDC, Azure DevOps OIDC, and Azure managed identity endpoints. The attacker demonstrated rapid re-publishing after the initial quarantine, highlighting a potential vulnerability in PyPI's containment process. → stepsecurity.io |
| 2026-11-19 2026 | Microsoft’s agent-framework PyPI package Compromised with Credential Stealer news 3 min read AI Supply Chain | Microsoft’s agent-framework PyPI package versions 1.26.1 and 1.26.2 were compromised, utilizing Python startup hooks to exfiltrate Azure, GitHub Actions, and CI/CD credentials. These malicious versions install .pth files that, upon Python interpreter startup, silently collect environment data, cloud identity tokens, and other sensitive information, exfiltrating it to a webhook.site endpoint. Users should avoid installing these versions and, if already installed, remove them and rotate credentials. → socket.dev |
| 2026-11-19 2026 | A Python Startup Hook, a Hijacked Microsoft Package, and 41 Minutes on PyPI intermediate 8 min read Supply Chain | A Python startup hook allowed a hijacked Microsoft agent-framework package on PyPI to execute malicious code on interpreter startup, targeting cloud credentials and tokens within minutes of its release. The attack exploited Python's `.pth` file mechanism, which runs code upon interpreter initialization, enabling credential harvesting and exfiltration by malicious versions 1.26.1 and 1.26.2. This incident highlights the vulnerability of AI-agent tooling in supply-chain attacks and the critical need for careful dependency management and artifact provenance verification. |
| 2026-11-18 2026 | Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines news 4 min read AI Secrets Supply Chain | Malicious versions (1.26.1 and 1.26.2) of Microsoft's agent-framework Python package, downloaded thousands of times weekly, were uploaded to PyPI, introducing a credential stealer. This stealer, disguised as telemetry, targets Azure and CI pipeline secrets by exfiltrating environment variables, credential files, and cloud tokens to a webhook.site URL. Version 1.26.2 expanded its collection to include GitHub Actions OIDC token theft for accessing Azure resources without stored secrets. → wiz.io |
| 2026-11-18 2026 | InIt CTF: Super Pickle intermediate 3 min read Deser | Python's `pickle.loads()` allows for arbitrary code execution through its `REDUCE` opcode when deserializing untrusted input. This CTF challenge, "InIt CTF: Super Pickle," demonstrates how attackers can leverage `__reduce__` or specific standard library functions like `pty.spawn()`, `glob.glob()`, and `linecache.getlines()` to bypass keyword filters and achieve remote code execution and file reading primitives. The challenge highlights that simple keyword blocklists are insufficient to prevent pickle deserialization vulnerabilities, as alternative stdlib functions can achieve similar results without matching filtered terms. |
| 2026-11-18 2026 | LetMeOut: a three-letter Jinja jail escape advanced 1 min read SSTI | LetMeOut: a Jinja2 sandbox jail escape, where a calculator allows only ASCII templates of up to 170 characters and three distinct letters. A custom filter normalizes text after sandbox checks, enabling the use of a fullwidth underscore to bypass restrictions and `breakpoint()` to open a `pdb` shell within the flag directory. |
| 2026-11-17 2026 | 5 JWT Authentication Bugs I Keep Seeing in Django REST Framework Projects intermediate 3 min read AuthN JWT | Django REST Framework projects often suffer from five common JWT authentication vulnerabilities: exposing sensitive data in token payloads, using excessively long-lived access tokens, encountering issues due to clock skew between servers, storing tokens insecurely in browser localStorage, and failing to invalidate tokens upon password changes. Each of these insecure practices can be mitigated with specific configuration changes and coding patterns, such as limiting payload data, employing short access token lifetimes with refresh token rotation, synchronizing server clocks and allowing for leeway, utilizing HttpOnly cookies for refresh tokens, and implementing token versioning for revocation. |
| 2026-11-17 2026 | HackTheBox - Nimbus intermediate SSRF | The HackTheBox Nimbus machine involves exploring a system with a health check that reveals an AWS Nimbus job scheduler. The health check initially returns an "InvalidClientToken" error, suggesting a potential avenue for further investigation into the Nimbus scheduler's authentication mechanisms. The content marks the beginning of an nmap scan and then focuses on the initial findings related to the Nimbus job scheduler and its health check behavior. |
| 2026-11-17 2026 | Introducing Wake 5: agent-written Solidity fuzzing in Python advanced 3 min read AI Fuzzing | Wake 5, an open-source Python framework for Solidity testing, fuzzing, and static analysis, now features an EVM within the Python process and an MCP server for coding agents. This release allows agents to generate fuzz test harnesses from prompts, accelerating the auditing process. Wake 5 offers improved speed, memory stability, and Python type generation for contracts, outperforming tools like Foundry and Echidna in specific benchmarks. |
| 2026-11-17 2026 | CTF@CIT 2026 Temporary Destruction: Jinja SSTI blacklist bypass intermediate 1 min read RCE SSTI | Jinja SSTI blacklist bypass using escaped underscores allows reading `/tmp/flag.txt` via `os.popen`. The application directly renders user input as a Jinja template, attempting to filter double underscore usage with a regex. However, this blacklist is insufficient as Jinja evaluates escaped string literals like `\x5f\x5finit\x5f\x5f`, enabling attribute access to sensitive globals and remote code execution. |
| 2026-11-16 2026 | From a broken error message to full server RCE: Jinja2 SSTI writeup ($9,000) intermediate Bug Bounty RCE SSTI | A security researcher discovered a Server-Side Template Injection (SSTI) vulnerability in Jinja2, leading to full Remote Code Execution (RCE). The vulnerability was initially hinted at by a "broken error message" that exposed internal details. This exploit allowed the researcher to gain complete control over the server. The company awarded a $9,000 bounty for this critical finding. |
| 2026-11-16 2026 | eMudhra / emSign CA Compromise: What Python, pip, and CI/CD Users Need to Update news 7 min read Supply Chain | Python packaging tools require updating due to the eMudhra/emSign certificate authority incident, where eight intermediate CA certificates had keys generated with insufficient randomness. This vulnerability allows an attacker to create imposter certificates for HTTPS services, potentially intercepting connections and tricking dependency downloaders into accepting malicious responses without compromising package registries. Remediation involves updating specific versions of `certifi`, `pip`, and `uv`, and users must check custom certificate bundles and distributor backports. → stepsecurity.io |
| 2026-11-16 2026 | litellm 1.107.0 Compromised on PyPI and Docker: Credential Stealer and Hourly Remote Code Loader news 22 min read Secrets Supply Chain | LiteLLM 1.107.0, a popular Python SDK for LLM providers, was compromised on PyPI and Docker, distributing a credential stealer and hourly remote code execution payload. The malware, hidden within compiled wheels and Docker images, targets sensitive information including API keys for major LLM providers. The attack leveraged a leaked GitHub organization owner's token, allowing the attacker to inject malicious code via a lookalike repository and modify the build process. This marks the second compromise of LiteLLM on PyPI this year, emphasizing the need for vigilant dependency management. → stepsecurity.io |
| 2026-11-16 2026 | fast-jwt empty-key unsigned-accept model (CVE-2026-107720) news 3 min read JWT | CVE-2026-107720 in fast-jwt's empty-key unsigned-accept model is an offline, deterministic Python model that re-implements the vulnerability's verifier gating logic. This model demonstrates how the `createVerifier` function could accept unsigned JWTs when the key is empty or null with a non-empty algorithm allowlist, without executing actual code or performing cryptographic verification against any target. It includes 18 test cases covering various scenarios and produces local file outputs for analysis. |
| 2026-11-15 2026 | SUSE-SU-2026:5064-1: PyJWT HMAC forgery and JWKS key-substitution fixes news 4 min read AuthN JWT | Update for python-PyJWT addresses eight vulnerabilities, including CVE-2026-101917 concerning JWKS endpoint amplification and CVE-2026-102267 for forwarded credential disclosure or key substitution. It also fixes HMAC forgery issues identified in CVE-2026-102268 and CVE-2026-102271, raw-token revocation bypass in CVE-2026-102269, denial-of-service in CVE-2026-102270, and stolen token misuse in CVE-2026-102275. |
| 2026-11-15 2026 | livesub: subfinder + httpx wrapper for live-host recon reports intermediate 2 min read Recon | Tool wrapping ProjectDiscovery's subfinder and httpx, livesub automates live-host reconnaissance for authorized pentesting and bug bounty engagements. It generates grouped text and JSON reports, categorizing live subdomains by HTTP status codes, titles, and detected technologies. Installation is straightforward via pip or direct source execution, with no Python runtime dependencies and clear instructions for specifying the httpx binary. → pypi.org |
| 2026-11-14 2026 | ZDI-26-951: FAIRChem deserialization of untrusted data RCE news Deser RCE | ZDI-26-951 in Meta FAIRChem allows remote code execution via deserialization of untrusted data in checkpoint files. Attackers can exploit this flaw, which requires user interaction through a malicious page or file, to run arbitrary code within the application's process. Mitigation involves restricting interaction with the vulnerable product. → zerodayinitiative.com |
| 2026-11-14 2026 | BBOT 3.1.0: faster DNS brute-forcing and new passive subdomain sources intermediate 5 min read OSINT Recon | Library release BBOT 3.1.0 introduces faster DNS brute-forcing via blastdns 2.0, new passive subdomain sources like otilabs and scanmalware, and WAF bypass detection with the nowafpls module. Enhancements include improved custom module loading, hardened configuration validation, and optimized DNS concurrency. Notable module updates involve telerik, nuclei, and wayback, alongside new favicon and js_unpacker capabilities. This release also removes massdns and DeepDiff dependencies, updating others to improve performance and security. |
| 2026-11-14 2026 | ZDI-26-908: Meta Detectron2 deserialization of untrusted data RCE news Deser RCE | Advisory ZDI-26-908 details a deserialization of untrusted data remote code execution vulnerability in Meta Detectron2. This flaw arises from improper validation during pickle file parsing, allowing attackers to execute arbitrary code within the affected process by tricking users into opening malicious files or visiting compromised pages. Mitigation involves restricting user interaction with the product. → zerodayinitiative.com |
Frequently Asked Questions
- What are common Python security vulnerabilities?
- Common Python security issues include unsafe deserialization with pickle, command injection through os.system() and subprocess with shell=True, Server-Side Template Injection in Jinja2, path traversal in file operations, SSRF in the requests library, and SQL injection when using string formatting instead of parameterized queries.
- Why is Python popular in cybersecurity?
- Python's readability, extensive standard library, and rich ecosystem of security packages make it ideal for exploit development, automation, and tool building. Libraries like pwntools, scapy, impacket, and requests are widely used in penetration testing. Python is also the primary language for Burp Suite extensions (via Jython) and many security scanners.
- How do you write secure Python code?
- Use parameterized queries for database access, avoid pickle for untrusted data (use JSON instead), never use eval() or exec() on user input, use subprocess with shell=False and explicit argument lists, validate and sanitize file paths to prevent traversal, and keep dependencies updated to patch known vulnerabilities.