Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@cyclonedx/cdxgen

Latest version: v12.9.2

Overview

Last scanned
13 Nov 2026
Published
13 Nov 2026
npm package Publisher: coderpatros, cyclonedx-automation, eoftedal, jkowalleck, sspringett
8 Versions
1.6M Downloads

Scan summary

@cyclonedx/cdxgen was last scanned on 13 Nov 2026 at version 12.9.2. Risk score 5 of 100 (low). High-severity rules fired.

  • Releases: 8 versions; the latest was published on 13 Nov 2026.
  • Findings: 3 rules fired in version 12.9.2 (1 high, 1 medium, 1 low). The score describes this version only.
  • Downloads: 1,602,091 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
12.9.2 LATEST 13 Nov 2026 3 rules fired
12.9.1 6 Nov 2026 3 rules fired
12.9.0 22 Oct 2026 3 rules fired
12.8.8 22 Oct 2026 Not shown
12.8.6 14 Oct 2026 Not shown

Rules fired in 12.9.2: 3

Findings

1 High 1 Medium 1 Low

Findings for v12.9.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Several suspicious behaviors form a known attack pattern

Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.

HIGH

Encoded string decodes to a command or instruction

MEDIUM

Repository belongs to a different package

LOW
Checking access…

🔒 Create a free account to see all 3 findings with descriptions and instance counts

The score describes 12.9.2; other versions have their own rules, not their own score.

Known vulnerabilities

3 CVEs · last 26 Jun 2026

0 CRITICAL 1 HIGH 2 MEDIUM 0 LOW

Versions

  • ≥ 12.4.3
  • ≥ 12.3.3, < 12.4.3 1 MEDIUM
  • ≥ 11.1.7, < 12.3.3 2 MEDIUM
  • ≥ 9.9.5, < 11.1.7 1 HIGH 2 MEDIUM
  • < 9.9.5 1 HIGH 1 MEDIUM

Vulnerabilities

  • GHSA-5VWR-QCHF-Q4PF Medium 26 Jun 2026 @cyclonedx/cdxgen: Maven project scanning may allow shell command injection through repository-controlled module paths Fixed in 12.4.3
  • GHSA-QHH4-458H-XWH2 Medium 8 May 2026 @cyclonedx/cdxgen: Docker registry auth substring match forwards credentials to a different registry Fixed in 12.3.3
  • CVE-2024-50611 High 27 Oct 2024 CycloneDX cdxgen may execute code contained within build-related files Fixed in 11.1.7

README

The publisher’s own README, as collected from the registry.

SBOM AI-DECLARATION: pair [![JSR][badge-jsr]][jsr-cdxgen] [![NPM][badge-npm]][npmjs-cdxgen] [![GitHub Releases][badge-github-releases]][github-releases] [![NPM Downloads][badge-npm-downloads]][npmjs-cdxgen] [![GitHub License][badge-github-license]][github-license] [![GitHub Contributors][badge-github-contributors]][github-contributors] [][swh-cdxgen]

CycloneDX Generator (cdxgen)

cdxgen is a CLI tool, library, REPL, and server to create, validate, sign, and verify software BOMs. It generates CycloneDX JSON BOMs and supports SPDX 3.0.1 JSON-LD export. CycloneDX is a full-stack BOM specification that is easily created, human and machine-readable, and simple to parse. The tool supports CycloneDX specification versions from 1.5 - 1.7.

Supported BOM formats:

  • Hardware (HBOM) - For supported live hosts such as Apple Silicon macOS and Linux amd64/arm64 systems.
  • Software (SBOM) - For many languages and container images.
  • Cryptography (CBOM) - For Java keystores and certificates, plus JavaScript and TypeScript source-level algorithm inventory.
  • Operations (OBOM) - For Linux container images and VMs running Linux or Windows operating systems.
  • Software-as-a-Service (SaaSBOM) - For Java, Python, JavaScript, TypeScript, and PHP projects.
  • AI/ML (AI-BOM) - For prompt files, AI services, MCP configs, and model metadata with explainable AI-governance, security, performance, and agentic findings.
  • Attestations (CDXA) - Generate SBOM with templates for multiple standards. Sign the BOM document at a granular level to improve authenticity.
  • Vulnerability Disclosure Report (VDR) - Use cdxgen with OWASP depscan to automate the generation of VDR at scale.

Supported output document formats:

  • CycloneDX JSON (primary native format)
  • SPDX 3.0.1 JSON-LD (cdxgen --format spdx or cdx-convert)

Choose your path

Persona What cdxgen helps you do First command Read next
Developers Generate a CycloneDX BOM from a local repo, git URL, purl, or container image cdxgen -o bom.json . [CLI Usage][docs-cli], [Supported Project Types][docs-project-types]
AI platform teams Generate AI/ML BOMs, catalog prompt/model/MCP surfaces, and run AI-BOM governance aibom . AI-BOM Guide, AI-BOM lesson
Hardware teams Generate an HBOM or merged HBOM+OBOM host view for the current host hbom -o hbom.json HBOM guide, HBOM lesson
AppSec Enrich BOMs with evidence, run BOM audit rules, and feed downstream security workflows cdxgen -o bom.json --profile appsec --evidence --bom-audit . BOM Audit, Threat Model
SOC analysts Build OBOM inventories for live hosts and triage runtime posture issues obom -o obom.json --deep --bom-audit --bom-audit-categories obom-runtime OBOM lessons, [Server Usage][docs-server]
Compliance teams Validate BOM quality, check SCVS/CRA posture, and export SPDX deliverables cdx-validate -i bom.json --benchmark scvs-l2,cra cdx-validate, cdx-convert, [Permissions][docs-permissions]
Security Teams Dynamically trace executions to capture cryptographic activities, CBOM properties, software components, and services tracebom --cbom-output cbom.json -- npm test Threat Model
Role-based quick starts
For developers
  • Start with a local path, git URL, or purl and generate a BOM in one command.
  • Use [Supported Project Types][docs-project-types] to confirm ecosystem coverage before wiring cdxgen into CI.
For hardware and platform teams
  • Use hbom when you need a CycloneDX hardware inventory for the current host rather than a software dependency graph.
  • Start with the HBOM guide and the HBOM lesson for supported platforms, enrichment options, and validation workflows.
  • Use hbom --dry-run first when you want a read-only partial HBOM plus an exact list of blocked hardware probe commands before a full collection run.
  • Use hbom diagnostics when you want a focused summary of missing native utilities and permission-denied enrichments before deciding whether to install host packages or rerun with --privileged.
  • Use hbom --include-runtime when you want one topology-aware CycloneDX host document that merges hardware inventory with runtime evidence using strict, non-guessing joins.
For AppSec
  • Use --profile appsec, --evidence, and --bom-audit when you want richer security context.
  • Combine generation with BOM Audit, cdx-validate, signing, and verification for a fuller secure-SBOM workflow.
  • Use tracebom to dynamically profile applications & services and capture negotiated TLS cipher suites, protocols, cryptographic libraries, dynamically resolved software components, and services in CycloneDX 1.7 format.
For AI platform and governance teams
  • Use --include-formulation plus --bom-audit --bom-audit-categories ai-bom when you want one AI-BOM workflow for prompt files, AI services, MCP configs, and model metadata.
  • Use aibom when you want the same defaults in one dedicated CLI, including direct Hugging Face purls/URLs and direct Modelfile / .gguf inputs.
  • Start with the AI-BOM Guide and the AI-BOM lesson for the preferred alias, review flow, and category breakdown.
For SOC analysts
  • Use obom for live-system and runtime inventory on Linux, Windows, and macOS hosts.
  • Focus on OBOM lessons when you need host triage, persistence review, Linux GTFOBins-backed runtime analysis, hardening drift review, or incident-response evidence.
For compliance and platform governance
  • Use cdx-validate to assess structural and compliance posture, then cdx-convert when SPDX output is required.
  • Review [Permissions][docs-permissions] and hardened-environment guidance before adopting cdxgen in controlled pipelines.

Why cdxgen?

Most SBOM tools are like simple barcode scanners. For easy applications, they can parse a few package manifests and create a list of components only based on these files without any deep inspection. Further, a typical application might have several repos, components, and libraries with complex build requirements. Traditional techniques to generate an SBOM per language or package manifest either do not work in enterprise environments or don't provide the confidence required for both compliance and automated analysis. So we built cdxgen - the universal polyglot SBOM generator that is user-friendly, precise, and comprehensive!

Our philosophy:

  • Explainability: Don't list, but explain with evidence.
  • Precision: Try using multiple techniques to improve precision, even if it takes extra time.
  • Personas: Cater to the needs of a range of personas such as security researchers, compliance auditors, developers, and SOC.
  • Machine Learning: Optimize the generated data for Machine Learning (ML) purposes by considering the various model properties.
  • Safety: Execute external build tools and handle untrusted inputs defensively, with hardened defaults, a secure mode for sensitive environments, and a read-only --dry-run mode for review-first workflows.

Documentation

Please visit our [documentation site][docs-homepage] for detailed usage, tutorials, and support documentation.

Sections include:

  • [Getting Started][docs-homepage]
  • [CLI Usage][docs-cli]
  • HBOM Guide
  • Merged Host View Lesson
  • [Server Usage][docs-server]
  • Hands-on Lessons
  • Container Escape & Privilege Lesson
  • HBOM Lesson
  • [Supported Project Types][docs-project-types]
  • [Environment Variables][docs-env-vars]
  • [Advanced Usage][docs-advanced-usage]
  • [Permissions][docs-permissions]
  • Security Policy
  • Threat Model
  • [Support (Enterprise & Community)][docs-support]

Usage

Installing

Install the npm package without the optional binary plugins for basic SBOM generation.

npm:

npm install -g @cyclonedx/cdxgen --omit=optional --ignore-scripts --min-release-age=2

For a full and rich experience with support for multiple BOM types, remove --omit=optional.

npm install -g @cyclonedx/cdxgen --ignore-scripts --min-release-age=2

pnpm:

pnpm add -g @cyclonedx/cdxgen --omit=optional --ignore-scripts --minimum-release-age=2880

bun:

bun install -g @cyclonedx/cdxgen --ignore-scripts

Installing @cyclonedx/cdxgen exposes these commands:

Command Purpose Standalone GitHub release binary
cdxgen Generate CycloneDX / SPDX BOMs from source, images, binaries, git URLs, or purls yes
aibom Generate CycloneDX AI/ML BOMs from source, Hugging Face URLs/purls, Modelfiles, or GGUF artifacts (-t ai defaults) yes
hbom Generate a CycloneDX hardware BOM for the current host yes (hbom, hbom-slim)
tracebom Trace command execution to capture dynamic CBOM, cryptographic properties, software components, and services yes
cdx-audit Prioritize existing BOM dependencies for upstream supply-chain review using explainable risk signals yes
cdx-convert Convert CycloneDX JSON to SPDX 3.0.1 JSON-LD yes
cdx-sign Sign BOMs with JSF signatures yes
cdx-validate Validate BOMs and benchmark posture yes
cdx-verify Verify BOM signatures yes
cdxi Open the interactive REPL no
evinse Add evidence, reachability, and service context no
cbom Alias for CBOM-oriented cdxgen defaults yes
obom Alias for cdxgen -t os yes
saasbom Alias for SaaSBOM-oriented cdxgen defaults yes
spdxgen Alias for cdxgen --format spdx use cdxgen
cdxgen-secure Alias for hardened cdxgen defaults use cdxgen

Standalone GitHub release binaries are published for cdxgen, cdxgen-slim, aibom, cbom, obom, saasbom, hbom, hbom-slim, cdx-audit, cdx-convert, cdx-sign, cdx-validate, cdx-verify, and tracebom.

hbom release binaries bundle both @cdxgen/cdx-hbom and the matching @cdxgen/cdxgen-plugins-bin* companion helpers for the target platform. hbom-slim keeps the dedicated hardware collector (@cdxgen/cdx-hbom) but omits the companion plugin bundle when you want the smallest single-file HBOM executable.

The cbom and saasbom release binaries bundle the Atom analysis stack (@appthreat/atom and @appthreat/atom-parsetools) plus protobuf export support (@cdxgen/cdx-proto and @bufbuild/protobuf). The obom release binary bundles the matching platform plugin package, pruned to runtime OS inventory helpers, plus the same protobuf export support. These aliases therefore support --export-proto --proto-bin-file <file> without requiring a separate npm install.

cdx-audit is designed to accelerate upstream dependency review with explainable, evidence-backed risk prioritization. It complements provenance, reproducibility, and manual investigation rather than replacing them.

For AI-heavy repositories, cdxgen also supports an AI-BOM workflow via the aibom command or the -t ai project type aliases (ai, aibom, ai-bom). This emits AI service/model evidence and pairs naturally with the ai-bom BOM-audit category alias for governance, security, performance, AI-agent, and MCP findings.

For host inventories, hbom --include-runtime produces a merged HBOM + OBOM view with strict topology links such as interface-name, driver-module, storage/runtime, and explicit secure-boot trust matches, plus a host-topology BOM audit pack for higher-confidence host findings. When the live hardware collector reports missing utilities or permission-sensitive enrichments, use hbom diagnostics (or inspect the derived cdx:hbom:analysis:* summary properties) before deciding whether a rerun with --privileged is justified.

To run cdxgen without installing (hotloading), use the pnpm dlx command.

corepack pnpm dlx @cyclonedx/cdxgen --help

You can call any packaged command the same way:

corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-audit --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-convert --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-validate --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-sign --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdx-verify --help
corepack pnpm dlx --package=@cyclonedx/cdxgen hbom --help
corepack pnpm dlx --package=@cyclonedx/cdxgen hbom diagnostics --help
corepack pnpm dlx --package=@cyclonedx/cdxgen evinse --help
corepack pnpm dlx --package=@cyclonedx/cdxgen cdxi --help

If you are a [Homebrew][homebrew-homepage] user, you can also install [cdxgen][homebrew-cdxgen] via:

$ brew install cdxgen

If you are a [Winget][winget-homepage] user on windows, you can also install cdxgen via:

winget install cdxgen
Standalone GitHub release binaries

If you want a single-file executable instead of an npm installation, download a published release asset and verify its hash before executing it.

Common asset names:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @cyclonedx/cdxgen

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229