skillfed

lib4vex

VEX generator and consumer library

lib4vex v0.2.3 83.1K downloads/30d#14,099 on PyPI20
Permissive license Apache-2.0 Active released

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 on this page — 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

lib4vex on PyPI

pip

pip install lib4vex

uv

uv add lib4vex

poetry

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 the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 3 — lib4sbom, csaf-tool, packageurl-python
Maintenance actively maintained — 158 days since the last release
Last repo commit
First released
Downloads 83,121/month — #14,099 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: lib4vex-0.2.3-py3-none-any.whl

Keywords: security, tools, SBOM, DevSecOps, SPDX, CycloneDX, VEX, CSAF, OpenVEX, library

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

VEX document parser generatorvulnerability exploitability exchangeSBOM vulnerability managementCycloneDX CSAF OpenVEXDevSecOps vulnerability trackingsecurity advisory documentssoftware vulnerability reporting
sbom-vulnerabilitydevsecopsformat-conversion

More Security packages