SCA flags a critical CVE in a transitive dependency and no patched version exists. What are your options?
IntermediateScenarioPipeline Security Scanning
Answer
Situation read → The question is whether the vulnerable code path is reachable, not just whether the package is present.
What I'd do →
- Check reachability: read the advisory for the affected function and grep your usage. Tools such as
govulncheckdo this for Go. - Look for a newer major version or an alternative library; use overrides (
npm overrides, MavendependencyManagement,go.mod replace). - Add a compensating control such as a WAF rule or input validation if reachable.
- If unreachable, document a VEX statement (
not_affected,vulnerable_code_not_in_execute_path) and an expiry. - Open an issue upstream and set a review date.
Why → You manage risk with evidence instead of blocking the release over a theoretical issue.
Interview tip → Mention VEX; most candidates do not.
More on Pipeline Security Scanning
You are asked to add security to an existing CI pipeline. Where do SAST, SCA, secrets scanning and DAST each go?BeginnerGitleaks flags an AWS access key in a pull request. The developer says it is a test key. What do you do?BeginnerDevelopers fear security scans will slow the pipeline from 6 to 20 minutes. How do you roll them out?BeginnerA SAST tool reports 2,000 findings on a legacy repo the first time you run it. How do you introduce it without freezing delivery?IntermediateA developer insists a scanner finding is a false positive. What is your process?BeginnerDevelopers bypass your pre-commit secret scan with `git commit --no-verify`. How do you close the gap?Intermediate