CRAForge EU CRA Compliance Workbench

CRAForge Knowledge Base · Ecosystems

Python requirements.txt & poetry.lock CRA SBOM Guide

Normalize PEP 503 package names, extract --hash=sha256 pins, and detect actively exploited native wheel vulnerabilities like Pillow CVE-2023-4863.

Category: Ecosystems Standards: PEP 503 Package Normalization · Package URL (pkg:pypi) · CRA Article 14 Auf Deutsch lesen

Actionable Engineering Checklist

  1. Pin exact versions (==) and include --hash=sha256 digests via pip-compile or poetry.lock.
  2. Normalize PyPI names per PEP 503 (e.g. Pillow -> pkg:pypi/pillow@10.0.0) for accurate OSV matching.
  3. Track bundled C/C++ shared libraries inside binary wheels (libwebp, OpenSSL, cryptography).
  4. Gate container builds on active KEV / ENISA EUVD matches before deployment.

Regulatory & Technical Specification Matrix

Compliance Dimension Statutory Specification & CRAForge Implementation
Legal & Standard Basis PEP 503 Package Normalization · Package URL (pkg:pypi) · CRA Article 14
Accepted Formats CycloneDX 1.5 / 1.6 (JSON, XML) · SPDX 2.3 / 3.0.1 (JSON-LD) · package-lock.json · Cargo.lock · requirements.txt · poetry.lock · go.sum
Vulnerability Feeds OSV.dev + ENISA EUVD (exploited) + CISA KEV — Article 14 24h watchdog triggers regardless of CVSS score
Key CRA Deadlines Article 14 reporting in force since 2026-09-11 · Full CE / Annex VII compliance mandatory 2027-12-11
CI/CD Gate Command npx craforge scan ./requirements.txt --fail-on-kev

Automation & CLI Command

$ npx craforge scan ./requirements.txt --fail-on-kev
CRAForge strips environment markers safely and handles multi-line backslash continuations in pip-compile outputs.

Frequently Asked Questions

Why does PEP 503 normalization matter?

OSV and PURL standards lowercase and collapse separators (_, .) to hyphens so Pillow and pillow match identically.

Does CRAForge parse poetry.lock hashes?

Yes, SHA-256 artifact hashes from [[package.files]] are extracted automatically.

Related EU CRA Engineering Guides

Validate your SBOM against BSI TR-03183-2 & ENISA EUVD now
Zero signup · Zero server retention in EU memory · Instant clause-by-clause diff.
Open Free Validator