AAK-LEGAL-001: Copyleft license (AGPL, SSPL, GPL-3 or EUPL) declared in package.json
- Severity
- HIGH
- Category
- Legal Compliance (
legal-compliance) - Scanner
agent_audit_kit/scanners/legal_compliance.py- Auto-fixable
- No.
- SARIF name
CopyleftLicenseDep
What it detects
A package.json in the project declares a copyleft license (AGPL, SSPL, GPL-3 or EUPL) in its license field. The rule reads the project's own manifests, not the dependencies it installs. Distributing that package, or offering it as a network service under AGPL or SSPL, carries the license's obligations.
How to fix
Confirm that the declared license is the one the package should ship under, and that its obligations suit how the project is distributed or hosted. Installed dependencies are not checked here: run a license checker over the resolved dependency tree for those.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-LEGAL-001
Limitations
Reads the license field of each package.json in the scanned tree and matches a value that starts with AGPL, SSPL, GPL-3 or EUPL. node_modules is skipped, so the license of an installed dependency is not checked, and the legacy licenses array is not read.
References
No external references are recorded for this rule.
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-LEGAL-001.md: the page then shows that text, with the registry reference appended under it.