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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th 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 ID SNYK-JS-JMONDIURLTOPNG-7244621
  • published 11 Jun 2024
  • disclosed 10 Jun 2024
  • credit timoxoszt

How to fix?

Upgrade @jmondi/url-to-png to version 2.0.3 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 in the .env file on the server, which contains AWS access keys for an administrative user. These keys grant full access to critical AWS services like S3 and EC2. An attacker can read arbitrary files by exploiting the file wrapper.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None