# PatchRisk: Forecasting Future Vulnerability Exposure in Open-Source Dependency Networks

DevFeed: [PatchRisk: Forecasting Future Vulnerability Exposure in Open-Source Dependency Networks](<https://devfeed.tech/articles/patchrisk-forecasting-future-vulnerability-exposure-in-open-source-dependency-networks-94506.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.13719>)

Author: Ashfaq Ali Shafin, Khandaker Mamun Ahmed

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [software composition analysis](<https://devfeed.tech/topics/software-composition-analysis.md>), [Dependency management](<https://devfeed.tech/topics/dependency-management.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [code security](<https://devfeed.tech/topics/code-security.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [dependency-graph](<https://devfeed.tech/tags/dependency-graph.md>), [detection](<https://devfeed.tech/tags/detection.md>), [ecosystems](<https://devfeed.tech/tags/ecosystems.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [exposed](<https://devfeed.tech/tags/exposed.md>), [feature](<https://devfeed.tech/tags/feature.md>), [forecasting](<https://devfeed.tech/tags/forecasting.md>), [future](<https://devfeed.tech/tags/future.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [horizon](<https://devfeed.tech/tags/horizon.md>), [improvement](<https://devfeed.tech/tags/improvement.md>), [networks](<https://devfeed.tech/tags/networks.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

## AI overview

PatchRisk forecasts whether a package's non-root dependencies will receive vulnerability advisories within a future horizon, using the dependency graph available at release time. Its benchmark covers npm and PyPI and addresses label leakage and package memorization through filtration-aware labels, package-disjoint evaluation, and temporal testing. In the 10K temporal test, HistoryGraph raises AUPRC over the strongest TimeOnly baseline from 0.351 to 0.640 for 90-day forecasts and from 0.473 to 0.813 for 365-day forecasts; the abstract reports similar stability at smaller scales and under package-group shuffle tests.

## Source excerpt

arXiv:2609.13719v2 Announce Type: replace Abstract: Open-source software ecosystems are web-scale dependency networks. A downstream package can become exposed to security risk not because its own source code changes, but because one of its transitive dependencies later receives a vulnerability advisory. Existing vulnerability-detection work often focuses on whether code is currently vulnerable or whether a known vulnerable dependency is already present. We study a different problem: future transitive vulnerability exposure. Given a package-version dependency graph observed at release time, the task is to predict whether any non-root dependency will receive a vulnerability advisory within a future horizon. This problem is important for Web intelligence and software supply-chain security because it supports proactive dependency triage before future exposure is visible. It is also easy to evaluate incorrectly: current vulnerable dependencies can leak the label, and different versions of the same root package can create package-level memorization across train and test splits. We therefore construct PatchRisk, a leakage-aware benchmark from Open Source Vulnerability advisories and deps.dev dependency graphs for npm and PyPI. The benchmark uses filtration-aware labels, package-disjoint evaluation, temporal testing, and nested 1K, 3K, 5K, and 10K sampling scales. The largest cleaned setting contains 9,007 root package-version graphs spanning 4,157 root packages. We evaluate three feature families: TimeOnly, GraphStruct, and HistoryGraph. On the 10K temporal-test benchmark, HistoryGraph improves AUPRC over the strongest TimeOnly baseline from 0.351 to 0.640 for 90-day forecasting and from 0.473 to 0.813 for 365-day forecasting. The improvement remains stable across smaller scales and package-group shuffle robustness tests.