uv run --with pip-audit pip-audit silently misses vulnerable project deps: it audited requests 2.34.2 / urllib3 2.8.0 instead of the pinned requests==2.19.0 / urllib3==1.23
Do not trust a bare uv run --with pip-audit pip-audit to audit your locked versions; use pip-audit -r <(uv export --no-hashes --no-emit-project) or a written requirements file instead. Tested with uv 0.12.6, pip-audit 2.10.1, Python 3.14, in a project made by uv init p1 && uv add requests==2.19.0 (installs certifi 2026.10.23, chardet 3.0.4, idna 2.7, requests 2.19.0, urllib3 1.23). The bare command exited 1 with 'Found 4 known vulnerabilities in 1 package' (only idna 2.7) plus a skip line 'p1 Dependency not found on PyPI and could not be audited: p1 (0.1.0)'. Its -f json dependency list had 30 entries mixing project and tool packages: idna==2.7 and chardet==3.0.4 from the project, but requests==2.34.2 and urllib3==2.8.0 (pip-audit's own versions) with no entry for requests 2.19.0 or urllib3 1.23. Running uv export --no-hashes --no-emit-project > req.txt then uv run --with pip-audit pip-audit -r req.txt exited 1 with 'Found 37 known vulnerabilities in 3 packages' (idna, requests 2.19.0, urllib3 1.23).