Resources Downloaded over Insecure Protocol Affecting prince package, versions <1.4.5


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.61% (79th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDnpm:prince:20161201
  • published25 Dec 2016
  • disclosed1 Dec 2016
  • creditAdam Baldwin

Introduced: 1 Dec 2016

CVE-2016-10591  (opens in a new tab)
CWE-319  (opens in a new tab)

How to fix?

Upgrade prince to version 1.4.5 or higher.

Overview

prince is a Node API for executing XML/HTML to PDF renderer PrinceXML via prince CLI.

Affected versions of the package are vulnerable to Man in the Middle (MitM) attacks due to downloading resources over an insecure protocol. The vulnerability is in the /prince-npm.js file, where it downloads a zip file over http. Without a secure connection, it is possible for an attacker to intercept this connection and alter the packages received. In serious cases, this may even lead to Remote Code Execution (RCE) on your host server.

References

CVSS Scores

version 3.1