Path Traversal Affecting @jmondi/url-to-png package, versions <2.1.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Learn

Learn about Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-JMONDIURLTOPNG-7456994
  • published16 Jul 2024
  • disclosed15 Jul 2024
  • creditrealArcherL

Introduced: 15 Jul 2024

CVE-2024-39918  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade @jmondi/url-to-png to version 2.1.2 or higher.

Overview

@jmondi/url-to-png is a Start with a url, end up with a png. The Module.

Affected versions of this package are vulnerable to Path Traversal due to improper sanitization in the ImageId parameter. An attacker can store an image in an arbitrary location that the server has permission to access.

CVSS Scores

version 4.0
version 3.1