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

cra-audit

Latest version: v2.4.2

Overview

Last scanned
2 Oct 2026
Published
2 Oct 2026
npm package Publisher: migohe14
0 Stars
0 Forks
7 Versions
1.1K Downloads
JavaScript Repo language

Scan summary

cra-audit was last scanned on 2 Oct 2026 at version 2.4.2. Risk score 40 of 100 (medium). High-severity rules fired.

  • Releases: 7 versions; the latest 2 were published on 2 Oct 2026.
  • Findings: 2 rules fired in version 2.4.2 (2 high). The score describes this version only.
  • Downloads: 1,099 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.4.2 LATEST 2 Oct 2026 2 rules fired
2.4.1 2 Oct 2026 2 rules fired
2.4.0 23 Sep 2026 2 rules fired
2.3.0 23 Sep 2026 Not shown
2.1.1 23 Sep 2026 Not shown

Rules fired in 2.4.2: 2

Findings

2 High

Findings for v2.4.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.

Secret read next to a detached background process

The same file reads a registry, cloud or CI secret from the environment and starts a detached process that keeps running after the parent exits. The scanner does not check that the secret is passed to that process. A background process that outlives the package does not normally need the package's credentials.

HIGH

Several suspicious behaviors form a known attack pattern

HIGH
Checking access…

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

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

README

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

cra-audit

npm CI license

Compliance audit for the Cyber Resilience Act (Regulation EU 2024/2847) and the BSI TR-03183 technical guideline — native for npm, Yarn and pnpm, and for any language through its SBOM.

cra-audit audits the installed dependencies of an npm project and checks the key requirements that the CRA imposes on "products with digital elements". It runs directly with npx, without installation, and has no production dependencies to minimize its own supply-chain surface. It reads the project lockfile natively, so it works with npm (package-lock.json / npm-shrinkwrap.json), Yarn (classic v1 and Berry v2+ yarn.lock) and pnpm (pnpm-lock.yaml) — auditing the exact versions each package manager pinned. Python, Go and Java projects are read directly from requirements.txt / poetry.lock / uv.lock / Pipfile.lock, go.mod, pom.xml and gradle.lockfile, and any other language through the SBOM your tooling produces (-i) — details.

# Run ALL the law's checks (Vulnerabilities + Licenses + SBOM)
npx cra-audit

# Interactive visual report (HTML) with maintenance data
npx cra-audit --visualize

# Just the SBOM part
npx cra-audit --sbom
npx cra-audit sbom check

What it checks and why (mapping to the regulation)

Under the hood, the package runs the checks derived from the CRA legal obligations and the TR-03183 technical guideline:

1. Automatic SBOM validation

Generates and validates a Software Bill of Materials (SBOM) in a machine-readable format —CycloneDX 1.6 (default) or SPDX 2.3— from the package-lock.json / npm-shrinkwrap.json, yarn.lock or pnpm-lock.yaml, following the field mapping of BSI TR-03183-2 v2.1.0:

TR-03183-2 data field Where it comes from CycloneDX 1.6 field
Creator of the SBOM (email or URL) --creator, sbomCreator policy, or the project's author / homepage / repository metadata.manufacturer
Timestamp generation time (UTC) metadata.timestamp
Component creator (email or URL) installed package.json: author, maintainers, homepage, repository components[].manufacturer
Name, version, purl lockfile name, version, purl
Filename tarball name (left-pad-1.3.0.tgz) property bsi:component:filename
SHA-512 of the deployable component lockfile integrity externalReferences[distribution].hashes
Executable / archive / structured npm tarball: non-executable, archive, structured properties bsi:component:*
Dependencies + completeness lockfile dependency graph (npm v1–v3, Yarn classic/Berry, pnpm v5–v9) dependencies, compositions[].aggregate
Distribution / original licences lockfile or installed package.json licenses[] with acknowledgement concluded / declared
Source code URI repository externalReferences[source-distribution]

sbom check verifies every one of those fields for every component. Licenses (for Yarn/pnpm) and component creators are read from node_modules, so run it after installing dependencies (e.g. after npm ci in CI).

Known limits: Yarn Berry lockfiles only store Yarn's own cache checksum, not the npm tarball SHA-512, so Berry projects fail the hash check. TR-03183-2 v2.1 requires SPDX ≥ 3.0.1; the SPDX output is still 2.3, so use CycloneDX for a conforming SBOM.

CRA Annex I · TR-03183 Part 2 — "Transparency through SBOM".

2. Known, actively exploited and malicious dependencies

Checks every direct and transitive dependency, at the exact version pinned in the lockfile, against:

Source What it finds Effect on the audit
OSV.dev — GitHub Advisory Database Known vulnerabilities, with severity, CVE aliases and the version that fixes them Fails at or above --fail-on (default high)
OSV.dev — OpenSSF malicious packages Compromised releases (MAL-*), e.g. the Shai-Hulud worm versions Always fails; cannot be allowlisted
CISA KEV Vulnerabilities with evidence of active exploitation Fails by default (--no-fail-on-kev to only warn) and shows the CRA Art. 14 deadlines that apply if it is exploitable in your product
  HIGH     [KEV] vite@6.2.3  (fix: vite@6.4.3)
    GHSA-4r4m-qw57-chr8 / CVE-2025-31125 Vite has a `server.fs.deny` bypassed … [KEV since 2026-01-22]

⚠ CRA Art. 14 — applies if this known exploited (CISA KEV) vulnerability is exploitable in your product
    Assess first: is the vulnerable code shipped and exploitable in your product?
      • Not exploitable ...... record it as not_affected with VEX (cra-audit vex)
      • Exploitable .......... notify the coordinating CSIRT and ENISA through the Single Reporting Platform (SRP):
          Early warning ...... within 24 hours of becoming aware
          Notification ....... within 72 hours
          Final report ....... within 14 days after a corrective measure is available

Only package names and versions are sent to api.osv.dev; the KEV catalogue is downloaded from cisa.gov (or CISA's GitHub mirror). If KEV cannot be reached the report says so instead of silently passing, and if OSV.dev is unreachable the audit falls back to npm audit. --vuln-source npm uses npm audit directly.

CRA Annex I Part I (2)(a) — placed on the market without known exploitable vulnerabilities. Art. 14 — any actively exploited vulnerability contained in the product must be notified, with an early warning within 24 hours of becoming aware. A KEV match means the vulnerability has been exploited somewhere: assess whether it is exploitable in your product and record the decision with VEX.

3. Third-party component check

Identifies every third-party open-source library present in the dependency tree and cross-references it against known security advisories, flagging vulnerable components and whether a fix is available.

CRA — special attention to third-party developed components.

4. License and hash management

Verifies that all dependencies have their license documented and compliant with the policy (allowlist / denylist), and that they carry unique identifiers (purl) and integrity hashes (SHA-512/384/256) as recommended by TR-03183.

TR-03183-2 §5.2 — license governance and hash integrity.

5. Visualization (--visualize)

Generates an interactive, self-contained HTML report (no external CDNs, works offline) that gathers, per package: SBOM, installed vs. latest published version, license, vulnerabilities and maintenance signals to assess how well each project is maintained:

  • Last npm publish and number of maintainers.
  • Associated repository.
  • (Optional, with --github) last commit date, number of contributors and stars.
  • Deprecated / archived indicators.
  • A maintenance score (0-100) with a label well-maintained / moderate / at-risk.

The report includes summary cards, search, filters (vulnerable, outdated, license issues, at risk) and column sorting.

6. VEX — documenting exploitability (vex)

A known vulnerability in a dependency is not always exploitable in your product. Record your assessment in .cra-audit.json and cra-audit both accepts it in the audit and writes it to a VEX document (CycloneDX 1.6 or OpenVEX 0.2.0) — the place TR-03183-2 reserves for vulnerability data, outside the SBOM:

{
  "vulnerabilities": {
    "allowlist": [
      {
        "id": "CVE-2020-11023",
        "package": "jquery",
        "status": "not_affected",
        "justification": "code_not_reachable",
        "detail": "We never pass untrusted HTML to jQuery DOM methods; content is rendered via textContent."
      },
      { "id": "GHSA-35jh-r3h4-6jhm", "status": "affected", "detail": "_.template used in the exporter; upgrade planned for 3.2.1." }
    ]
  }
}
status Accepted by the audit CycloneDX analysis.state OpenVEX status
not_affected (default) ✔ not_affected not_affected
false_positive ✔ false_positive not_affected
affected ✖ exploitable affected
under_investigation ✖ in_triage under_investigation

justification accepts the CycloneDX values (code_not_present, code_not_reachable, requires_configuration, requires_dependency, requires_environment, protected_by_compiler, protected_at_runtime, protected_at_perimeter, protected_by_mitigating_control) or the OpenVEX ones, and is translated for each format. Findings without an assessment are written as in triage / under investigation; malicious packages are always exploitable / affected. Accepting a vulnerability without justification or detail works, but the audit warns about it.

npx cra-audit vex -o vex.cdx.json                    # CycloneDX 1.6 VEX
npx cra-audit vex --format openvex -o vex.openvex.json
7. CRA readiness (readiness)

Checks the vulnerability-handling duties that live in the repository itself:

Check Level Reference
SECURITY.md (root, .github/ or docs/) required CRA Annex I Part II (5)
Email address or reporting URL for vulnerabilities required Annex I Part II (6) · Annex II (2)
Support period with an end date or duration required Art. 13(8) · Annex II (7)
No unfilled TODO placeholders required Annex II
security.txt Contact and a future Expires (when present) required RFC 9116
A lockfile to build the SBOM from required Annex I Part II (1)
Supported versions, response times, Art. 14 process (CSIRT/ENISA), security.txt, repository link recommended Annex II · Art. 14
npx cra-audit readiness          # exit code 1 when a required check fails
npx cra-audit readiness --init   # creates SECURITY.md and .well-known/security.txt templates (never overwrites)

--init prefills the templates from package.json (GitHub private vulnerability reporting link, supported major version, a coordinated disclosure process and the Art. 14 24 h / 72 h / 14 days reporting commitments); fill in the TODO placeholders and run it again.

8. Other languages: manifests and input SBOM

Read directly — just run npx cra-audit in the project folder (no package.json needed):

Ecosystem Files Notes
Python poetry.lock, uv.lock, Pipfile.lock (exact); otherwise requirements*.txt Only == pins are audited; ranges are skipped and reported, never guessed. -r includes, extras, markers and --hash lines are handled.
Go go.mod Every required module (direct and // indirect), with replace directives applied.
Java gradle.lockfile (exact), pom.xml pom.xml: declared dependencies with ${property} and <dependencyManagement> resolution; transitive ones need a Maven-generated SBOM.

Findings point at the exact line of the manifest (in the console and in SARIF). A folder with both an npm lockfile and one of these manifests (e.g. a front end next to a Go API) is audited as a whole. Manifests do not carry licenses or hashes, so for these ecosystems the audit warns instead of generating a TR-03183 SBOM: commit the one your build produces and audit it with -i.

  Sources: OSV.dev … · 4 components from requirements.txt, go.mod, pom.xml (golang, maven, pypi)
  pom.xml: declared dependencies only; commit a Maven-generated SBOM (cyclonedx-maven-plugin) to audit transitive ones
  CRITICAL [KEV] org.apache.logging.log4j:log4j-core@2.14.1  (fix: org.apache.logging.log4j:log4j-core@2.25.4)

Input SBOM (-i), any language:

audit, vuln, licenses and vex accept an existing CycloneDX JSON, SPDX 2.x JSON or SPDX 3.0 JSON-LD SBOM instead of the npm lockfile. Every component is looked up in OSV.dev by its Package URL, so you get the same checks — known vulnerabilities, malicious packages, CISA KEV with the Art. 14 deadlines, licenses, VEX and SARIF — for any ecosystem OSV covers (Maven, PyPI, Go, crates.io, NuGet, Packagist, RubyGems, Hex, Pub, npm…).

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 cra-audit

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229