No packages with unknown or missing licenses
Why it matters
In most jurisdictions, software without a license is implicitly 'all rights reserved' — you have no legal permission to use it, even if it is freely distributed on npm. A production dependency with an absent, UNLICENSED, or unrecognizable license field exposes you to IP claims from the original author at any time. CWE-1357 applies because you are relying on a component whose terms of use cannot be verified. Unlike the copyleft check, unknown licenses represent legal uncertainty in all directions: you do not know whether commercial use is permitted, whether redistribution triggers obligations, or whether the author intends to change the terms. This risk is amplified when AI tools generate npm install commands for packages they may have hallucinated.
Severity rationale
High because using software without a valid license means you have no legal permission to do so, exposing the business to IP claims from the original author with no clear defense.
Remediation
Audit all production dependencies for license fields:
npx license-checker --production --onlyAllow 'MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;0BSD'
For any package flagged as UNLICENSED or UNKNOWN:
- Check the GitHub repository for a
LICENSEfile not included in the npm publish. - Contact the maintainer to request license clarification.
- If no response, replace the package with a licensed alternative.
Do not ship to production with UNLICENSED code in your dependency graph.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Dependency & Supply Chain Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- cwe · CWE-1357 — Reliance on Insufficiently Trustworthy Component
- spdx · UNLICENSED — No license declared
Taxons
History
- 2026-04-18·v1.0.0·Initial import from dependency-supply-chain·automated