Skip to content

Verify CVE-free dependency floors when a project is created #706

Backlog

Description

@Espoir-Loem

Problem

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.

Activity

  1. added
    enhancement
    dependencies
    area:cli
    difficulty:advanced
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clidependenciesdifficulty:advancedenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions