Guide · Python
SBOM for Python projects
Python SBOMs are only as exact as your pins. A version range tells nobody what you actually shipped.
Make the SBOM
# from the project's lockfiles syft dir:. -o cyclonedx-json=sbom.cdx.json # or from the environment you ship (virtualenv, container layer, PyInstaller build folder) syft dir:path/to/site-packages -o cyclonedx-json=sbom.cdx.json
Syft reads requirements*.txt, poetry.lock, uv.lock, Pipfile.lock and installed packages (*.dist-info). Our lockfile converter matched Syft on OWASP PyGoat (32 of 32).
Pin exact versions
Entries such as flask>=2.0 do not say which version is in your product, so they cannot be checked. Pin with ==, or use a lockfile (Poetry, uv, pip-tools). Scanning the environment you actually ship is the most exact option.
Every release, automatically
Build the SBOM in your CI on every release: GitHub Actions · GitLab CI · Bitbucket Pipelines · Azure DevOps.
Why an SBOM matters for CRA Article 14
Since 11 September 2026, a manufacturer that becomes aware of an actively exploited vulnerability in its product must send an early warning to ENISA within 24 hours and a notification within 72 hours (Regulation (EU) 2024/2847, Art. 14). You can only react in time if you know which components and versions each release contains. That list is the SBOM. From 11 December 2027 an SBOM is also part of the required documentation (Annex I, Part II).
More: the reporting deadlines · what an SBOM is · does the CRA apply to you?
Next
- Check it now: drop the SBOM into the free exploited check to see if anything in it is being attacked today.
- Keep watching every release: SBOM Signal checks every supported version around the clock and alerts you with the deadlines and ENISA drafts ready. See the panel · Free pilot
Not legal advice. Commands checked with Syft 1.57.2 on 28 November 2026.