--- id: lib4vex version: "0.2.3" license: Apache-2.0 license_treatment: permissive maintenance: active --- # lib4vex — VEX generator and consumer library License: permissive · Maintenance: active · Downloads: 83.1K/mo ## What it is and what it does Lib4VEX is a library that bridges three major vulnerability document formats—OpenVEX, CycloneDX, and CSAF—by providing a common abstraction for parsing and generating VEX (Vulnerability Exploitability eXchange) documents. It lets you work with vulnerability information without being locked into a single specification, making it easier to integrate vulnerability data into DevSecOps workflows that may use different tools or standards. The library is designed to work alongside SBOMs (Software Bill of Materials), extracting and organizing vulnerability status information so you can track which vulnerabilities affect your software components and their current remediation state. It supports JSON output, file writing, and console output, and includes a debug mode via the LIB4VEX_DEBUG environment variable. Three runtime dependencies (lib4sbom, csaf-tool, packageurl-python) handle SBOM parsing and package URL normalization. Use it for: - Convert vulnerability data between OpenVEX, CycloneDX, and CSAF formats in automated security pipelines. - Extract vulnerability information from a CycloneDX SBOM and generate a corresponding VEX document. - Parse existing OpenVEX or CSAF VEX documents to audit vulnerability status across your software inventory. - Generate audit trails of vulnerability assessments by retaining timestamped VEX documents for compliance. - Integrate vulnerability exploitability data into CI/CD workflows that use multiple security tools. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Lib4VEX parses and generates VEX (Vulnerability Exploitability eXchange) documents in OpenVEX, CycloneDX, and CSAF formats, providing a unified abstraction layer for vulnerability information across these specifications. Yes, if you work with multiple VEX or SBOM formats in security tooling. The library solves a real interoperability problem and is actively maintained with no known vulnerabilities. Alpha status and limited documentation mean you should expect to read examples and the tutorial; the three runtime dependencies add modest install friction but are well-established packages. Worth trying in a development environment first to validate the API fits your workflow. ## Install pip install lib4vex uv add lib4vex poetry add lib4vex ## Installing lib4vex Before you install: Low friction install with three runtime dependencies (lib4sbom, csaf-tool, packageurl-python). Actively maintained with recent commits; marked Alpha status but supports current Python versions (3.7–3.11, CPython and PyPy). License in practice: Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most development and deployment contexts. Quickstart: pip install lib4vex from lib4vex.vex import VEX # Parse or generate VEX documents vex = VEX() # Use methods to parse OpenVEX, CycloneDX, or CSAF formats Requires Python 3.7 or later; intended for use with SBOM data to ensure vulnerability information is relevant to your software components. Verify before relying: - Specific API surface and method signatures for parsing/generating each VEX format variant. - Performance characteristics when processing large SBOM or VEX documents. - Maturity and stability guarantees given Alpha development status. - Completeness of vulnerability data validation and error handling. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 83.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags VEX document parser generator, vulnerability exploitability exchange, SBOM vulnerability management, CycloneDX CSAF OpenVEX, DevSecOps vulnerability tracking, security advisory documents, software vulnerability reporting, sbom-vulnerability, devsecops, format-conversion [View on SkillFed](https://skillfed.io/packages/lib4vex) · [View on PyPI](https://pypi.org/project/lib4vex/)