VDB
Sign up
MEDIUM5.3

GHSA-3x93-p86w-5jvh

danger allows local OS command injection through crafted file paths

Quick fix

GHSA-3x93-p86w-5jvh — danger: upgrade to the fixed version with the command below.

npm install danger@13.0.8

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/danger
Introduced in: 0Fixed in: 13.0.8
Fixnpm install danger@13.0.8

References