fastapi-code-generator: Import-time RCE via route path -> unescaped @app.get('...') decorator
What to do
- Upgrade to a fixed version: fastapi-code-generator 0.8.1.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
fastapi-code-generator
- < 0.8.1
- 0.8.1
Check your project: pip show fastapi-code-generator
What changed
Published in the GitHub Advisory Database as critical.