Description
A vulnerability was identified in danger danger-js up to 13.0.7. Impacted is the function danger.git.diffForFile of the file source/platforms/git/localGetFileAtSHA.ts of the component CLI. Such manipulation of the argument File leads to os command injection. The attack needs to be performed locally. Upgrading to version 13.0.8 is recommended to address this issue. The name of the patch is 087a7290264cc6fb7154ea8c2552a7b2cb8b33a3. It is advisable to upgrade the affected component.
Published: 2026-07-22
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A locally exploitable OS command injection flaw is present in the danger‑js command line interface, specifically within the diffForFile function in the localGetFileAtSHA module. An attacker who can influence the File argument of this function can cause arbitrary operating‑system commands to be executed with the privileges of the running CLI process. The vulnerability maps to CWE-77 and CWE-78. Among the consequences are the potential compromise of the host system, unauthorized access to sensitive data, and disruption of availability for services that rely on the CLI.

Affected Systems

All installations of danger‑js up to version 13.0.7 are affected. Updating to version 13.0.8 or later resolves the issue.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, and the EPSS score of < 1% indicates a low but non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Because exploitation requires local access to the CLI, the attack vector is inferred to be local. An attacker must be able to execute or influence the diffForFile call; therefore, restricting local usage or ensuring the File parameter is not derived from untrusted input reduces the risk.

Generated by OpenCVE AI on August 3, 2026 at 23:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade danger‑js to version 13.0.8 or later, which implements the necessary input validation to prevent command injection.
  • If immediate upgrade is infeasible, restrict execution of diffForFile to trusted contexts and sanitize the File argument to eliminate shell metacharacters.
  • After remediation, monitor audit logs for anomalous command execution attempts involving the CLI to detect any residual exploitation attempts.

Generated by OpenCVE AI on August 3, 2026 at 23:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Description A vulnerability was identified in danger danger-js up to 13.0.7. Impacted is the function danger.git.diffForFile of the file source/platforms/git/localGetFileAtSHA.ts of the component CLI. Such manipulation of the argument File leads to os command injection. The attack needs to be performed locally. Upgrading to version 13.0.8 is recommended to address this issue. The name of the patch is 087a7290264cc6fb7154ea8c2552a7b2cb8b33a3. It is advisable to upgrade the affected component.
Title danger danger-js CLI localGetFileAtSHA.ts danger.git.diffForFile os command injection
First Time appeared Danger
Danger danger-js
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:danger:danger-js:*:*:*:*:*:*:*:*
Vendors & Products Danger
Danger danger-js
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:ND/RL:OF/RC:C'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X'}


Subscriptions

Danger Danger-js
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-28T14:56:05.436Z

Reserved: 2026-07-22T16:02:19.846Z

Link: CVE-2026-16629

cve-icon Vulnrichment

Updated: 2026-07-28T14:05:44.772Z

cve-icon NVD

Status : Deferred

Published: 2026-07-22T22:16:29.073

Modified: 2026-07-28T16:17:33.610

Link: CVE-2026-16629

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:15:04Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')