devcert-sanscache@0.4.1 vulnerabilities

Generate trusted local SSL/TLS certificates for local SSL development

Direct Vulnerabilities

Known vulnerabilities in the devcert-sanscache package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

devcert-sanscache is a package that can be used to generate trusted local SSL/TLS certificates for local SSL development.

Affected versions of this package are vulnerable to Command Injection. The variable commonName controlled by user input is used as part of the exec function without any sanitization.

PoC by JHU System Security Lab

var root = require("devcert-sanscache");
var attack_code = "&touch Song&";
root(attack_code);

How to fix Command Injection?

Upgrade devcert-sanscache to version 0.4.7 or higher.

<0.4.7