📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

A critical NuGet advisory affects a transitive package and no fixed version of the parent package exists yet. What do you do?

Mid-Level Coding Intermediate

🎯 Key points

  • Pin a fixed transitive version if one exists and is compatible
  • Assess reachability, untrusted input and exposure of the affected service
  • Package-level mitigations: avoid or wrap the vulnerable API, disable the feature, alternative library
  • Communicate risk, mitigation and timeline to the product owner and security lead
  • Time-boxed, approved suppression for that advisory only; track upstream
  • Replace the dependency if it's reachable, unmitigable and unfixed
  • Long term: scheduled transitive dependency reviews and a leaner dependency tree

⏱ 30-second answer

First check whether a fixed version of the transitive package itself exists and is compatible: if so, pin it with Central Package Management transitive pinning (or a direct reference) and run the tests. If not, assess reachability and exposure: do we call the vulnerable API or code path, with untrusted input, in an internet-facing service? Then apply package-level mitigations: avoid the vulnerable API, wrap it with validation, disable the feature that uses it, or swap to an alternative library. Tell stakeholders (product owner, security lead) the risk, the mitigation and the plan in plain terms. Suppress only that advisory with NuGetAuditSuppress, a short expiry and security-lead approval, and track the upstream issue. If it's reachable, unmitigable and no fix is coming, replace the package. Longer term, a scheduled review of transitive dependencies and fewer heavyweight dependencies reduce how often this happens.

🔍 What the interviewer is checking

Checks judgement when the easy fix isn't available: pinning, reachability, mitigation and time-boxed exceptions.

↩ Usually asked after

More in Senior Security Topics

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me