Interview › Security & DevSecOps
What is a transitive dependency, and why does it complicate patching? [Intermediate]
Answer
A transitive dependency is a dependency pulled in by another dependency rather than declared directly by the application. It complicates patching because the vulnerable package may be several levels deep, and overriding it can break the library that expects a specific version.
Technical explanation
Direct dependencies are controlled in the application's manifest; transitive dependencies are resolved by the package manager.
Fixing transitives may require upgrading the parent dependency, changing a BOM, excluding a module, or adding a safe override.
Every override needs compatibility testing because dependency graphs can introduce runtime conflicts.
Hands-on example
Example: spring-boot-starter pulls a vulnerable Jackson version. The safer fix is often upgrading Spring Boot's BOM. If not possible, override jackson-databind to the fixed version, run integration tests, and inspect the resolved tree before release.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is vulnerability management as a lifecycle (discover, prioritise, remediate, verify)? [Intermediate]
- How do you reduce the noise of thousands of vulnerability findings? [Intermediate]
- What is the difference between a CVE, a CVSS score, and exploitability (EPSS/KEV)? [Basic]
- How would you use Wiz findings to drive remediation across teams? [Basic]
- What is a toxic combination (attack path) in Wiz, and why prioritise it? [Basic]
- What is the Wiz Security Graph, and why is context important for prioritisation? [Basic]
- What is workload identity, and how does it remove static credentials? [Intermediate]
- How does Wiz scan a cloud environment without agents? [Basic]