Packages fetched from a source that can be swapped
Gapmedium severity · reads .txt .conf .cfg .ini .toml .sh .bash .yml .yaml Beta
Over plain HTTP, or with certificate checks off, anyone on the network path can serve a different package. With a second pip index, a public package that takes an internal name with a higher version is installed instead (dependency confusion, CWE-829). Partial for the second-index case: your internal names may already be reserved. When Lintsure finds this, it marks it as a Gap: the code itself shows the problem.
What it looks like
A line Lintsure flags in its own test app:
// requirements.txt
--extra-index-url https://pypi.internal.example.invalid/simpleHow to fix it
Use one index or registry over https. For private packages, point only their scope or name at the private registry (npm: @scope:registry=..., pip: --index-url with a proxy that serves both) instead of adding a second index.
Through a coding agent, Lintsure suggests the change and waits. Nothing is edited until you approve it.
Controls it relates to
- Cyber Resilience ActAnnex I Part II (1)Components identified, including an SBOM
- OWASP Top 10A03:2025Software Supply Chain Failures
- OWASP Top 10A08:2025Software or Data Integrity Failures
What the framework asks
Cyber Resilience Act Annex I Part II (1): Components identified, including an SBOM
You know what's in your product: pinned dependencies, no unexplained compiled files, and a machine-readable software bill of materials (SBOM) covering at least the top-level components.
Evidence a reviewer may ask for: An SBOM per release in CycloneDX or SPDX format.
Summaries are our own reading of the public texts, not the official wording.
Check your code for this
Runs on your machine. Your code is never uploaded.
npx lintsure scanThis rule is in Beta: its mapping to framework controls is our own reading of the public texts, not independently reviewed. Lintsure is a readiness tool, not an audit or legal advice. A finding, or the lack of one, doesn't make you compliant. Disclaimer
We improve these rules all the time. If you see a false alarm, a missed problem or anything that could work better, tell us in a review and we will use it to improve your experience.
Related rules
- Personal data written to logs
- Secret or private key committed to source
- Data sent over plain HTTP
- Personal data sent to an analytics or tracking tool
Did this rule flag something that's fine, or miss a real problem? Tell us on GitHub. Every report becomes a test case, so the same mistake can't come back.