Advisories and lockfiles
Declared versus resolved versions
A manifest can declare a permitted version range; a lockfile records a resolved dependency selection. For example, a fictional range permits TextCore 1.4.0 or 1.5.0, while the lock records 1.4.0. Review and commit lockfile changes and use the ecosystem’s consistent-install workflow. A lockfile reduces unexpected resolution changes but does not prove that the selected code is safe or that deployed bytes match it.
Read an advisory carefully
A vulnerability advisory identifies affected software and versions, and may give conditions and fixes. Mock advisory BM-26-01 concerns only the toy TextCore library in the toy ecosystem from 1.2.0 inclusive to 1.5.0 exclusive. Version 1.4.0 matches; 1.5.0 does not. Real advisories may use multiple ranges, commits, distribution backports or ecosystem-specific ordering. Use maintained matching tools rather than comparing version strings alphabetically.
Presence, reachability and exploitability
An affected version in inventory establishes a potential finding. Code reachability asks whether the relevant function can run in this application; exploitability also depends on inputs, configuration and controls. A graph path between packages is not a call path between functions. A report that a function is unreachable needs evidence and reevaluation when configuration changes. Do not equate no known advisory with no vulnerability.
Respond to a compromised dependency report
Treat a credible compromise report as an incident, not merely a version update. Pause promotion of possibly affected builds, preserve lockfiles, digests and audit evidence, identify affected deployments and inform owners. Use authorized incident procedures to assess credential exposure and revoke or rotate affected credentials if necessary. Select a verified remediation, rebuild in a trusted environment, test and document the new artifact and deployment outcome.
Practice: apply the mock advisory
Classify the supplied versions as affected, outside the toy range or unknown. Explain why a matching version is not proof of exploitability. Write a remediation ticket with owner, affected artifact, candidate fix, regression evidence and a retest date; keep the original finding linked to the replacement digest.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Advisories and lockfiles — knowledge check
Apply software supply-chain security principles to fictional scenarios.
Toy advisory affects 1.2.0 inclusive to 1.5.0 exclusive. Is 1.5.0 affected?
Why review lockfile changes?
Does an affected version prove exploitability?
First response to credible dependency compromise?
What links remediation to the original finding?