Soumettre #860211: Node.js danger 13.0.7 OS Command Injectioninformation

TitreNode.js danger 13.0.7 OS Command Injection
Description[email protected] appears to allow shell command injection during the public danger local workflow when a Dangerfile calls danger.git.diffForFile() on changed file paths. The issue is triggered through the CLI, not by importing internal modules directly: danger local --staging --dangerfile Dangerfile.js --text-only -> LocalGit.getPlatformGitRepresentation() -> Dangerfile calls danger.git.diffForFile(file) -> localGetFileAtSHA(file, repo, sha) -> child_process.exec(`git show ${sha}:"${path}"`) If a changed file path contains a double quote and shell metacharacters, the path breaks out of the quoted git show argument and the shell executes the injected command.
La source⚠️ https://github.com/danger/danger-js/pull/1513
Utilisateur
 wjm2 (UID 99050)
Soumission16/06/2026 19:20 (il y a 1 mois)
Modérer22/07/2026 18:02 (1 month later)
StatutAccepté
Entrée VulDB382377 [danger danger-js jusqu’à 13.0.7 CLI localGetFileAtSHA.ts danger.git.diffForFile Fichier élévation de privilèges]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!