PyPI: cadwyn
CVE-2025-53528
Safety vulnerability ID: SFTY-20250721-83020
Safety legacy ID: pyup.io-78278
Cadwyn creates production-ready community-driven modern Stripe-like API versioning in FastAPI. In versions 5.4.3 and below, the version parameter of the "/docs" endpoint is vulnerable to a Reflected XSS (Cross-Site Scripting) attack. This XSS would notably allow an attacker to execute JavaScript code on a user's session for any application based on Cadwyn via a one-click attack. The vulnerability has been fixed in version 5.4.4.
Overview
Cadwyn vulnerable to XSS on the docs page
Advisory
Cadwyn creates production-ready community-driven modern Stripe-like API versioning in FastAPI. In versions 5.4.3 and below, the version parameter of the "/docs" endpoint is vulnerable to a Reflected XSS (Cross-Site Scripting) attack. This XSS would notably allow an attacker to execute JavaScript code on a user's session for any application based on Cadwyn via a one-click attack. The vulnerability has been fixed in version 5.4.4.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20250721-83020/CVE-2025-53528
- https://github.com/zmievsa/cadwyn/security/advisories/GHSA-2gxp-6r36-m97r
- https://github.com/zmievsa/cadwyn/commit/b424ecd57cd8dabbc8fe39b8f8ccafea629c7728
- https://nvd.nist.gov/vuln/detail/CVE-2025-53528
- https://github.com/zmievsa/cadwyn/blob/5.4.3/CHANGELOG.md#543
- https://github.com/pypa/advisory-database/tree/main/vulns/cadwyn/PYSEC-2025-71.yaml
- https://github.com/advisories/GHSA-2gxp-6r36-m97r
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
