CVE-2026-54916: CWE-427: Uncontrolled Search Path Element in netbox-community devicetype-library
CVE-2026-54916 is a high-severity vulnerability in the netbox-community devicetype-library. It involves an uncontrolled search path element where an unauthenticated contributor can add malicious Python modules in the tests directory that shadow legitimate modules like GitPython. This allows arbitrary code execution during GitHub Actions test runs, potentially leading to test-result tampering and unauthorized access to tokens or network resources. The vulnerability is fixed by a specific commit.
AI Analysis
Technical Summary
The netbox-community devicetype-library suffers from an uncontrolled search path element vulnerability (CWE-427) due to the absence of tests/__init__.py and lack of --import-mode=importlib in pytest. This causes pytest to prepend the tests directory to sys.path during test collection. An unauthenticated contributor can add a module (e.g., tests/git.py) that shadows legitimate modules such as GitPython, or add tests/conftest.py to execute code automatically during test collection. This enables arbitrary code execution on the GitHub Actions runner, allowing tampering with test results and access to sensitive tokens or network resources exposed to the workflow. This issue is distinct from previously known vulnerabilities in the project and is fixed by commit b0d9a3dadd0a0a9d3c93b0b2777559fd4bad1037.
Potential Impact
Successful exploitation allows an unauthenticated contributor to execute arbitrary code on the GitHub Actions runner used for testing the devicetype-library. This can lead to tampering with test results and unauthorized access to tokens or network resources available to the workflow, potentially compromising the integrity and confidentiality of the CI/CD environment.
Mitigation Recommendations
A fix is available and has been applied in commit b0d9a3dadd0a0a9d3c93b0b2777559fd4bad1037. Users and maintainers of the netbox-community devicetype-library should update their codebase to include this commit to remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
CVE-2026-54916: CWE-427: Uncontrolled Search Path Element in netbox-community devicetype-library
Description
CVE-2026-54916 is a high-severity vulnerability in the netbox-community devicetype-library. It involves an uncontrolled search path element where an unauthenticated contributor can add malicious Python modules in the tests directory that shadow legitimate modules like GitPython. This allows arbitrary code execution during GitHub Actions test runs, potentially leading to test-result tampering and unauthorized access to tokens or network resources. The vulnerability is fixed by a specific commit.
CVSS v3.1
Score 8.8high
Affected software
netbox-community
devicetype-library
pkg:github/netbox-community/devicetype-libraryRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The netbox-community devicetype-library suffers from an uncontrolled search path element vulnerability (CWE-427) due to the absence of tests/__init__.py and lack of --import-mode=importlib in pytest. This causes pytest to prepend the tests directory to sys.path during test collection. An unauthenticated contributor can add a module (e.g., tests/git.py) that shadows legitimate modules such as GitPython, or add tests/conftest.py to execute code automatically during test collection. This enables arbitrary code execution on the GitHub Actions runner, allowing tampering with test results and access to sensitive tokens or network resources exposed to the workflow. This issue is distinct from previously known vulnerabilities in the project and is fixed by commit b0d9a3dadd0a0a9d3c93b0b2777559fd4bad1037.
Potential Impact
Successful exploitation allows an unauthenticated contributor to execute arbitrary code on the GitHub Actions runner used for testing the devicetype-library. This can lead to tampering with test results and unauthorized access to tokens or network resources available to the workflow, potentially compromising the integrity and confidentiality of the CI/CD environment.
Mitigation Recommendations
A fix is available and has been applied in commit b0d9a3dadd0a0a9d3c93b0b2777559fd4bad1037. Users and maintainers of the netbox-community devicetype-library should update their codebase to include this commit to remediate the vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T13:49:33.556Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aac51eb55bf5e2cf5e0e5c0
Added to database: 09/17/2026, 20:47:39 UTC
Last enriched: 09/17/2026, 21:01:28 UTC
Last updated: 09/17/2026, 21:07:50 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.