Interview › Security & DevSecOps
How would you remediate a critical CVE in a third-party Java dependency? [Intermediate]
Answer
For a critical CVE in a third-party Java dependency, I would identify whether it is direct or transitive, confirm exploitability in our service, upgrade the dependency or parent BOM, run regression tests, rebuild the artifact/image, deploy safely, and verify with SCA and runtime scans.
Technical explanation
The first step is dependency mapping with mvn dependency:tree or Gradle dependencies to find the exact path that introduced the vulnerable jar.
If a direct upgrade is safe, pin the fixed version. If transitive, upgrade the parent library/BOM or use dependency management with care.
Verification should include build success, unit/integration tests, SBOM regeneration, vulnerability rescan, and production rollout monitoring.
Hands-on example
Hands-on:
mvn dependency:tree -Dincludes=org.example:vulnerable-lib
# Update pom.xml dependencyManagement to a fixed version
mvn -B clean verify
syft packages dir:. -o cyclonedx-json > sbom.json
trivy fs --severity CRITICAL,HIGH.
Then deploy canary, monitor errors/latency, and close the ticket only after the scanner no longer reports the CVE.
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]
- How does Wiz scan a cloud environment without agents? [Basic]
- What is the difference between agent-based and agentless cloud security scanning? [Basic]