lang/python

Free catalog · v0.0.26

Reviews Python for security, reliability, and correctness hazards, including expiring OAuth bearer reuse.

Checks

RuleSeverityScans for
python.serializer-update-field-mappingHighSerializer update assigns a declared model field from a different validated-data key than the matching create path
python.default-empty-destructive-syncHighSynchronization code defaults a missing response collection to empty and uses it to drive destructive cleanup
python.eval-exec-dynamicCriticaleval() / exec() on non-literal input
python.flask-debugHighFlask/FastAPI/Starlette debug or reload enabled for production entrypoints
python.mark-safe-user-inputHighDjango mark_safe / Jinja |safe on user-influenced data
python.os-systemCriticalos.system / os.popen with dynamic command strings
python.oauth-client-credentials-reuseMediumOne client-credentials bearer attached to a shared Requests session and reused across repeated or multi-stage requests without expiry-aware or bounded 401 refresh
python.pickle-loadsCriticalpickle.loads / pickle.load / cPickle on non-literal data
python.requests-no-timeoutMediumrequests (or urllib.request) network calls without a timeout
python.shell-trueCriticalsubprocess invoked with shell=True and a non-constant command
python.sql-format-fstringHighSQL built with f-strings / % / .format into execute
python.sqlalchemy-offline-postgres-literalMediumOffline SQLAlchemy PostgreSQL literal rendering strips generated quotes while retaining the default backslash mode
python.tempfile-mktempMediumUse of deprecated tempfile.mktemp or predictable temp paths
python.tls-disabledHighTLS verification disabled on HTTP clients
python.unsafe-yamlCriticalPyYAML yaml.load without SafeLoader / safe_load

More from the registry