Open Source, Open Threats? Investigating Security Challenges in Open-Source Software
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: We're looking at the paper: "Open Source, Open Threats? Investigating Security Challenges in Open-Source Software".
Paper summary: Elias: To get into the details of this paper, they're analyzing a comprehensive dataset of thirty-one thousand two hundred sixty-seven unique vulnerability reports coming from GitHub’s advisory database and Snyk <ref:2506.12995#pg1,from GitHub’s advisory database and Snyk>.io <ref:2506.12995#pg1>. They are focusing on fourteen thousand six hundred seventy-five packages across ten different programming languages to see if the growth in software is keeping up with the growth in security issues > <ref:2506.12995#pg1>
Nadia: What they claim right off the bat is that while open source software is getting used way more, the rate at which vulnerable packages are being reported is growing much faster >
Priya: They point out this ninety-eight percent annual increase in vulnerable packages compared to just a twenty-five percent growth in total open source packages across those platforms <ref:2506.12995#pg2>.
Elias: That difference suggests that as package managers expand and pull in more code, the security risks associated with them are growing disproportionately >
Nadia: They also noted something about the age of these problems, showing an eighty-five percent increase in the average lifespan of vulnerabilities across those ecosystems over time <ref:2506.12995#pg8>.
Priya: That means that once a vulnerability shows up, it's taking way longer to get fixed before someone actually patches it.
Elias: They look at how long these issues stick around and also check where they are concentrated, finding that some platforms have a really high density of vulnerabilities in just a few key packages.
Nadia: For instance, they compared Composer and NPM, showing Composer had a much higher average number of vulnerabilities per vulnerable package than NPM did <ref:2506.12995#pg9>.
Priya: And when looking at what kinds of weaknesses are causing all this, they found that just seven common weakness enumerations or CWEs were responsible for over fifty percent of all the reported vulnerabilities across those platforms <ref:2506.12995#pg8>.
Elias: They gave examples like CWE-one thousand three hundred twenty-one called Prototype Pollution showing up in NPM because of how JavaScript handles prototype inheritance <ref:2506.12995#pg3>.
Nadia: And then there's the flip side, like CWE-one hundred twenty-two Heap-based Buffer Overflow being the top reported weakness for C and C plus at one hundred thirty-five reports <ref:2506.12995#pg9>.
Priya: They tracked intentionally malicious packages or CWE-five hundred six and it went from just thirty-eight reports in two thousand eighteen to a total of two thousand one hundred sixty-eight reports in two thousand twenty-four <ref:2506.12995#pg8>.
Elias: That concentration is really telling because they found that NPM and PyPi ecosystems together account for ninety nine percent of all those malicious package reports <ref:2506.12995#pg8>.
Nadia: And almost half of all reported vulnerabilities stem from packages that were actually designed to cause harm, which points to a serious supply chain issue.
Conclusion: Priya: So, looking at the paper "Open Source, Open Threats? Investigating Security Challenges in Open-Source Software," they're really pushing for changes in how we handle open source ecosystems because things aren't keeping up anymore.
Elias: And they suggest that focusing mitigation efforts on the common weakness enumerations or CWEs could actually improve overall open source security.
Nadia: So what this means for us is that we have to seriously rethink how we govern these open source projects because the risks are scaling up faster than the software itself.
Northeastern University · Florida International University
cs.CR
Submitted: 2025-06-15
Updated: 2025-06-15
DOI: 10.1007/978-3-032-42939-1_3
Code: https://github.com/sa-akhavani/oss-security
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 82/100
The gist: Open-source software (OSS) has become increasingly more popular across different domains, but this rapid development and widespread adoption come with a security cost.<ref:2506.12995#pg2>.
Key concepts
- Vulnerability Dynamics
- This concept tracks how quickly new security flaws are being reported versus how fast software packages are being released. The research found that vulnerabilities are increasing much faster than the software itself, suggesting a growing security crisis.
- Vulnerability Lifespan
- This refers to the average amount of time a specific vulnerability remains in an ecosystem before it is fixed or patched. The study showed this time has increased by 95% between 2017 and 2024, indicating that security issues are taking much longer to resolve.
- Vulnerability Concentration
- This describes how many vulnerabilities are found in a single package within a specific platform. Some platforms, like Composer, showed high concentration (4.92 per package), while others were more spread out (NPM at 1.75 per package). This shows where security risks are most densely packed.
- CWEs and Ecosystem Specificity
- Common Weakness Enumerations (CWEs) categorize types of flaws, and the study found that only seven CWEs cause over half of all reported vulnerabilities. Furthermore, certain flaws appear more often in specific languages or ecosystems due to their unique coding structures.
Terminology
Summary
Open-source software (OSS) has become increasingly more popular across different domains, but this rapid development and widespread adoption come with a security cost. p. 0 Abstract—Open-source software (OSS) has become increasingly more popular across different domains. However, this rapid development and widespread adoption
come with a security cost. We look at Common
Vulnerabilities and Exposures (CVEs) compared to the
overall growth in the number of packages. Key Finding: Our analysis reveals that the growth
rate of vulnerabilities significantly outpaces package
growth across ecosystems, with an average annual increase of 98% in vulnerable packages compared to
25% growth in total packages, indicating a deteriorating
security posture in open-source ecosystems. We observe an average
of 91% growth in the number of vulnerable packages
compared to 25% growth in the total number of packages each year. This suggests that while the opensource software community continues to expand, the
rate at which vulnerabilities are discovered is growing
even faster, raising a major security concern.Where the paper says it
Where the paper says it
Where the paper says it
Vulnerability Dynamics and Growth Rates
The study analyzed a comprehensive dataset comprising 31,267 unique vulnerability reports from GitHub’s advisory database and Snyk.io, belonging to 14,675 packages across 10 programming languages. p. 0 To understand the dynamics of OSS vulnerabilities, we analyze a comprehensive
dataset comprising 31,267 unique vulnerability reports
from GitHub’s advisory database and Snyk. io, belonging
to 14,675 packages across 10 programming languages. io, belonging
to 14,675 packages across 10 programming languages. Our analysis reveals a significant surge in reported
vulnerabilities, increasing at an annual rate of 98%—far
outpacing the 25% average annual growth in the number
of open-source software (OSS) packages. Our analysis reveals a significant surge in reported
vulnerabilities, increasing at an annual rate of 98%—far
outpacing the 25% average annual growth in the number
of open-source software (OSS) packages. Additionally, we
observe an 85% increase in the average lifespan of vulnerabilities across ecosystems during the studied period,
indicating a potential decline in security.Where the paper says it
Where the paper says it
Where the paper says it
Persistence and Concentration Patterns
The research investigated how long vulnerabilities persist in packages before being addressed (vulnerability lifespan), finding that the time a vulnerability remains in the ecosystem before being fixed has increased by 95% from 2017 to 2024.<ref:2506.12995#pg8>. The analysis also examined vulnerability concentration patterns, revealing distinct trends where some platforms exhibit a high concentration of vulnerabilities in key packages, while others show a broader, more distributed spread. p. 1 Additionally, we examine vulnerability concentration patterns to assess whether security
issues stem from a small number of packages or are
dispersed across the ecosystem. Our analysis reveals
distinct trends—some platforms exhibit a high concentration of vulnerabilities in key packages, while others
show a broader, more distributed spread. Our analysis reveals
distinct trends—some platforms exhibit a high concentration of vulnerabilities in key packages, while others
show a broader, more distributed spread. For instance,
Composer (4. For instance,
Composer (4. 92 vulnerabilities per vulnerable package)
and C/C++ (3.Where the paper says it
Where the paper says it
Where the paper says it
Ecosystem-Specific Vulnerability Trends
The evaluation of Common Weakness Enumerations (CWEs) across ecosystems reveals distinct vulnerability patterns shaped by both common threats and language-specific characteristics.<ref:2506.12995#pg8>. The analysis demonstrated that on average, just seven CWEs were responsible for over 50% of all reported vulnerabilities across the investigated platforms. p. 1 Our results reveal key trends in vulnerability
distribution, highlighting the prevalence of certain vulnerabilities and the impact of language-specific characteristics. Our data demonstrates that, on average of
the investigated platforms, only seven CWEs were responsible for over 50% of the vulnerability reports. For instance, we observe that CWE-1321
(Prototype Pollution) is seen in 560 reports in NPM. This is caused by JavaScript’s prototype inheritance
model, where objects can inherit properties from other
objects (prototypes). Notably, CWE-79 (Cross-Site Scripting) and CWE22 (Path Traversal) pose a major threat in ecosystems like Composer, NPM, PyPI, and Maven, reflecting
widespread security challenges in web applications. On
the other hand, some CWEs are deeply tied to language characteristics, such as CWE-122 (Heap-based
Buffer Overflow) in C/C++ or CWE-1321 (Prototype
Pollution) in JavaScript.Where the paper says it
Where the paper says it
Where the paper says it
Malicious Code and Supply Chain Threats
The analysis of intentionally malicious packages (CWE-506) showed that these incidents surged from just 38 reports in 2018 to a staggering 2,168 in 2024.<ref:2506.12995#pg8>. A high concentration of malicious packages was found within the NPM and PyPI ecosystems, which together account for 99% of all CWE-506 reports, with nearly half (48. p. 9 Our analysis reveals a high concentration of malicious packages within the NPM and PyPI ecosystems,
which together account for 99% of all CWE-506 reports. The situation is especially concerning in NPM,
where nearly half (48. The situation is especially concerning in NPM,
where nearly half (48. 58%) of all reported vulnerabilities stem from packages designed to inflict harm rather
than from unintentional bugs. • We discuss the vulnerability types that are common
across multiple platforms and others that are specifically reported for an ecosystem, requiring specific
mitigation strategies for each case. • We provide a detail analysis of intentionally malicious packages observed mostly in NPM and PyPI
ecosystems, showcasing their characteristics and attack vectors.Where the paper says it
Where the paper says it
Where the paper says it
Conclusion and Implications
These findings highlight an urgent need to rethink how we govern and secure open-source ecosystems through stronger review processes, more effective automated detection tools, greater transparency in package publishing, and a more proactive, community-driven approach.<ref:2506.12995#pg13>. The paper concludes that targeted mitigation based on the prevalence of specific CWEs could significantly improve overall OSS security. p. 8 These findings highlight the need for
ecosystem-specific mitigation strategies. For platforms
where vulnerabilities are dominated by a few CWE
types, targeted defenses focusing on those CWEs can
be particularly effective. We hope this work to raise awareness about the
increasing need for systematic approaches to enhance
visibility in open-source software. We also hope that
the insights provided in this paper will inspire new
directions in developing automated tools that can effectively model vulnerabilities and augment developers’
experience to build more robust code and test cases. We provide the research artifacts, including datasets and analysis scripts for further research 1
. This dataset serves as a valuable resource for future
research in the field, as no publicly available dataset
includes such valuable information in a unified format.Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Automated risk prioritization based on growth disparity: The system can prioritize security resources by calculating a
security urgency score
derived from Figure 3, comparing vulnerability growth rates (91% average) against total package growth rates (25% average). This directs focus toward platforms where the rate of vulnerabilities is outpacing package expansion. -
Ecosystem-specific mitigation strategy generation: For each programming language and ecosystem, the system can generate tailored mitigation plans by identifying prevalent CWEs. For instance, it would suggest
targeted defenses focusing on those CWEs
for NPM and Composer where asmall number of CWE types contribute to a large proportion of vulnerabilities.
-
Malicious package detection through pattern matching: The AI can be trained to identify indicators of intentional abuse within package names and versioning patterns. This includes recognizing that attackers frequently use
long names with more than 10 characters
and targetall versions using wildcards such as ‘∗‘, aiming for maximum compatibility.
-
Vulnerability lifespan prediction: The system can predict the persistence of vulnerabilities by analyzing trends in Figure 5, where the average lifespan across all platforms has grown from 1,056 days to 1,956 days. This allows for proactive alerts when a specific vulnerability report remains unresolved for an unusually long duration.
-
Supply chain attack vector analysis: The system can specifically flag and analyze known attack vectors like
typosquatting, dependency confusion, and installation hook exploitation
based on the data collected from CWE-506 reports. This enables real-time scanning of new package releases against these known malicious tactics.
Abstract
Open-source software (OSS) has become increasingly more popular across different domains. However, this rapid development and widespread adoption come with a security cost. The growing complexity and openness of OSS ecosystems have led to increased exposure to vulnerabilities and attack surfaces. This paper investigates the trends and patterns of reported vulnerabilities within OSS platforms, focusing on the implications of these findings for security practices. To understand the dynamics of OSS vulnerabilities, we analyze a comprehensive dataset comprising 31,267 unique vulnerability reports from GitHub's advisory database and Snyk.io, belonging to 14,675 packages across 10 programming languages. Our analysis reveals a significant surge in reported vulnerabilities, increasing at an annual rate of 98%, far outpacing the 25% average annual growth in the number of open-source software (OSS) packages. Additionally, we observe an 85% increase in the average lifespan of vulnerabilities across ecosystems during the studied period, indicating a potential decline in security. We identify the most prevalent Common Weakness Enumerations (CWEs) across programming languages and find that, on average, just seven CWEs are responsible for over 50% of all reported vulnerabilities. We further examine these commonly observed CWEs and highlight ecosystem-specific trends. Notably, we find that vulnerabilities associated with intentionally malicious packages comprise 49% of reports in the NPM ecosystem and 14% in PyPI, an alarming indication of targeted attacks within package repositories. We conclude with an in-depth discussion of the characteristics and attack vectors associated with these malicious packages.
Sources
- FinGPT: Open-Source Financial Large Language Models
- Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
- Can Large Language Models Find And Fix Vulnerable Software?
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management