r/devsecops • u/Few-Pilot7575 • Oct 26 '26
We stopped fixing dependency CVEs that our code never reaches
Our dependency alerts hit 340 open last month across 9 services. Most of it was transitive stuff in packages we pull in for one function. We were patching in order of CVSS score and never getting below 300, because new ones showed up faster than we closed them.
What changed it was splitting the list by whether our code can actually reach the vulnerable function. We already had coderabbit's security scan on, and its findings now come with a reachability and exploitability badge, so we filtered on that. 340 became 41 that were reachable from something we expose. We fixed those 41 in about two weeks, mostly through the fix PRs it opens.
The part I'm still not comfortable with: reachability is a guess. One finding marked not reachable was reachable through a background job that imports the whole package dynamically. We caught it in a manual pass, the tool didn't.
So now the rule is reachable gets fixed this sprint, not reachable gets a quarterly sweep. Is anyone else triaging dependency CVEs this way, or do your auditors still want every critical closed no matter what?
2
u/Prestigious-Flan-931 Oct 27 '26
You're absolutely on the right track. But your background job example exposes the fundamental problem with static reachability.
Static analysis can only reason about the execution paths it can model. Reflection, dynamic imports, dependency injection, runtime configuration, dynamically loaded plugins, and background jobs can all introduce execution paths that static analysis misses.
If the analysis is too conservative, you're back to drowning in false positives. If it's too aggressive, you risk dismissing vulnerabilities that are actually reachable.
The answer is continuous runtime reachability, down to the vulnerable function itself.
Full disclosure: working for Raven (raven.io). This is exactly the problem we built Raven to solve.
Instead of guessing which functions might execute, we continuously observe which libraries and functions actually execute in production, including paths resolved dynamically at runtime.
We go all the way down to the specific vulnerable function, across multiple major programming languages and runtimes.
One important distinction: not observed executing doesn't mean impossible to exploit. But actual runtime execution evidence is a much stronger foundation for prioritization than a theoretical call graph.
Happy to show you how Raven approaches this. Your 340-to-41 reduction is a great start. The next step is replacing assumptions with runtime evidence.
3
u/skuenzli Oct 26 '26
Disclosure: I build a product that triages dependency alerts in coding agents. Not associated with OP.
Your background-job miss is why we evaluate reachability per execution context: frontend, backend, worker, build+deploy. A given package can be unreachable from the web request path but reachable from a worker that imports it dynamically. The actors and entrypoints for each context determine whether attacker-controlled input reaches the vuln. When the facts that determine reachability are unclear, like a dynamic import the agent can't resolve, we don't guess: the alert goes to review and an engineer clarifies those facts.
We combine reachability, exploitability (KEV, EPSS), and policy floors to decide fix today, schedule this week, or defer to normal maintenance like a bulk dependency update. The policy floors implement escalation rules like "a public, business-critical service schedules the fix even when unreachable." We record each decision with its evidence, so we (or an auditor) can review it later.
In a recent 12-week experiment across our three prod services, 0 of 243 alerts needed fixing today, including 166 Critical/High. It's much calmer to schedule or defer with confidence than to react to every alert.
1
u/todbatx Oct 27 '26
I wonder how you believe EPSS measures “exploitability,” since it really measures statistical likelihood that a given vulnerability will be implicated in exploitation activity in the next 30 days.
1
u/skuenzli Oct 27 '26
Fair, "exploitability" is a loose description.
KEV is our evidence of exploitation in the wild.
EPSS is the forward-looking probability you described, and it can lag real exploitation by days to weeks. FIRST keeps observed exploitation out of the daily score (partner data-licensing). Daily scores move on public signals like exploit code, Metasploit modules, signatures, and chatter. We wrote up one fun case where VulnCheck KEV listed a CVE with ransomware use while EPSS sat at 2% for a week, then jumped once the listing showed up in public references: https://www.k9security.io/posts/2026/09/epss-score-is-not-exploit-evidence/
So to be more precise, we use EPSS as a threat-pressure signal. An EPSS at or above the 99th percentile counts as imminent, below the 90th as no meaningful pressure, and in between we don't lean on it either way.
1
u/todbatx Oct 27 '26
Hey thanks for not being a jerk about the response. Reddit can be kinda toxic, quick. I care a fair bit about EPSS and appreciate your explainer.
Also, we made a fun little toy here, just for KEVs: https://www.runzero.com/kev-collider/
1
u/skuenzli Oct 27 '26
Thanks, and thanks for checking me on the wording. Clarity matters in this space, and I let my love of -ility words go too far.
The KEV Collider looks very useful for the threat side of risk analysis. I noticed it has presets for straight-shot RCE and EPSS movers. Both are areas I want to explore but haven't had time to yet. In particular, is there useful information in the velocity or acceleration of a vuln's EPSS score over time?
1
u/todbatx Oct 28 '26
https://www.runzero.com/epss-pulse/ has what you seek. :) I think it’s useful. Most of the time you can figure out why a score jumped 20 or 30 points in a day. Sometimes it’s a mystery. Many of these mysteries are solvable!
I think the deltas over time are where the real EPSS action is at.
1
1
u/ILoveAppSec Oct 27 '26
Reachability triage is the right first cut for a backlog that size. For the transitive ones that do come back as reachable, the usual wall is that the fix only exists in a newer parent you cannot bump without a cascade. An alternative is to patch the vulnerable transitive package at its current version directly, which closes the CVE without touching the parent chain that pulls it in.
1
u/ale_grey_91 Oct 27 '26
About this problem, I'm working on a side project to filter out the noise of CVEs not exploitable through the system. In my case I'm considering the kubernetes protections applied to the pod to infer when the vulnerability actually matter. If this can help you, here's my project: https://github.com/alegrey91/vex8s I've been presenting it to the last container days in London.
1
u/AmusingVegetable Oct 27 '26
The problem with reachability is that it’s essentially the halting problem.
1
u/Deep-Regret-7479 Oct 27 '26
Unless you have a very big monolith and have thousands of dependencies from a decade ago, fixing one vulnerability is the same as fixing all. Update your dependencies and keep them updated.
1
u/PrasenShelar Oct 28 '26
For the auditor side, the not-reachable ones are easier to defend when each is written up as a dated risk acceptance: why it's considered unreachable, who signed off, and what triggers a re-check, such as a change to any code that imports that package. The quarterly sweep then means going back through that list, and your background-job case is what the trigger is for.
1
u/creepinshadow 27d ago
What tool did you use? I’d do CVE remediation on two tracks: emergency track: anything proofen to be exploitable on your system needs an immediate fix, the rest can wait u til the next patch cycle, that could be multiple weeks out
1
u/drdavidawheeler 23d ago
Hi, I work at OpenSSF on security. As you noted, in a lot of software, reachability is a guess. Many modern frameworks make it practically impossible to answer the question "what can be called" because they create the call on the fly. It's easy to answer "what ran in my test suite" but that isn't what matters for security.
We in the OpenSSF don't have some sort of official policy on reachability. However, we do have this concise guide, which focuses on what is generally agreed to be *good* approaches:
https://best.openssf.org/Concise-Guide-for-Developing-More-Secure-Software
Instead of focusing on guesses like reachability, for security we focus on things like:
5. Use package managers. Use package managers (system, language-level, and/or container-level) to automatically manage dependencies and enable rapid updates.
6. Implement automated tests. Include negative tests (tests that what shouldn’t happen doesn’t happen) and ensure the test suite is thorough enough to “ship if it passes the tests”.
7. Monitor known vulnerabilities in your software’s direct & indirect dependencies. E.g., enable basic scanning via GitHub’s dependabot or GitLab dependency scanning. Many other third party Software Composition Analysis (SCA) tools are also available. Quickly update vulnerable dependencies.
8. Keep dependencies reasonably up-to-date after a cooldown. Outdated dependencies make it hard to update for vulnerabilities. Apply a cooldown delay (typically ~3 days) for updating components without known vulnerabilities; cooldowns counter the vast majority of malicious package releases (see cooldowns.dev for configuration hints).
Basically: yes, everyone is finding that their dependencies are getting updated. Instead of trying to prevent that, or endlessly delay that, automate it & make it efficient. If you make updating your dependencies & testing them painless, it's not a big deal. A lot of people have inadequate test suites; in that case, it's not your dependencies that are the problem, it's the test suite. So fix the test suite.
0
u/RndWebSurfer Oct 26 '26
disclosure, i build StackRadar (open source k8s vuln scanner), not affiliated with OP or coderabbit
the background job thing is why i don't really trust call graph reachability on its own. we filter one level lower first: is the image with that package actually running in the cluster right now? tons of findings are in CI images, test stuff or jobs nobody has run in months, and those drop out without any guessing. a worker that dynamically imports the whole package still shows up because it's literally running
then running + on KEV gets fixed now, whatever the call graph says. the rest can go through your reachable/not reachable split
12
Oct 26 '26
[removed] — view removed comment
1
u/Curotte-Cecillou Oct 26 '26
VEX documents were supposed to standardize proving non-exploitability to auditors, though most compliance teams still just filter the spreadsheet by critical and ask why its red
1
3
u/pentesticals Oct 26 '26
One of the problems though is that the vulnerable function isn’t well defined for every CVE, is often just outright wrong or is just totally missing. This is likely why tools don’t do a good job at reachability.
But regardless, most version bumps are safe to do anyway so if you can just automate the PR to bump version and then make sure your tests are solid to make sure it’s safe and doesn’t break anything, that alone gets you a long way.