Skip to main content

CVE-2026-54916: CWE-427: Uncontrolled Search Path Element in netbox-community devicetype-library

0
High
VulnerabilityCVE-2026-54916cvecve-2026-54916cwe-427cwe-829
Published: 09/17/2026 (09/17/2026, 20:01:14 UTC)
Source: CVE Database V5
Vendor/Project: netbox-community
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

netbox-community

devicetype-library

GitHub Actionsmore threats →ai
netbox-community/devicetype-library
pkg:github/netbox-community/devicetype-library
Affected versions
*

Run 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

AILast updated: 09/17/2026, 21:01:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses