You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify CVE-free dependency floors when a project is created #706
area:cliThe nx commanddependenciesPull requests that update a dependency filedifficulty:advancedTouches several layers; read ARCHITECTURE.md and discuss the plan firstenhancementNew feature or request
Generated projects depend on nexy>=<version> and ORM packages with no minimum versions chosen for security. The framework repository audits its floors with OSV and pip-audit, but a project a user just created never gets that check.
What we know
nexy/modules/cli/templates/_shared/web/pyproject.toml.jinja2 and the api variant declare nexy>=<version> plus ORM and driver packages.
scripts/audit_floors.py lines 20 to 92 reads floor versions from the root pyproject.toml and the generated package.json.jinja2, queries https://api.osv.dev/v1/querybatch, and fails when a floor has an advisory.
docs/reference/security.md lines 5 to 21 lists the floors and the reason for each.
Generated projects do not carry the floors or the audit.
Proposal
Give generated projects the same CVE-free floors the framework uses, for Python and for JavaScript packages.
Share the OSV audit logic between the repository script and the scaffold, instead of copying it.
Run the check when a project is created while online; offline, write the floors and print the command to run the check later.
Acceptance
A test asserts the exact floors written into a generated pyproject.toml and package.json.
A test uses a fake OSV response to prove an advisory blocks the scaffold.
A test covers the offline path and its message.
No advisory is ignored without a dated entry in SECURITY.md.
area:cliThe nx commanddependenciesPull requests that update a dependency filedifficulty:advancedTouches several layers; read ARCHITECTURE.md and discuss the plan firstenhancementNew feature or request
Activity