Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @jmondi/url-to-png
  4. ›
  5. CVE-2024-39919

CVE-2024-39919: @jmondi/url-to-png enables capture screenshot of localhost web services (unauthenticated pages)

July 15, 2024 (updated November 18, 2024)

The maintainer been contemplating whether FTP or other protocols could serve as useful functionalities, but there may not be a practical reason for it since we are utilizing headless Chrome to capture screenshots. The argument is based on the assumption that this package can function as a service.

The package includes an ALLOW_LIST where the host can specify which services the user is permitted to capture screenshots of. By default, capturing screenshots of web services running on localhost, 127.0.0.1, or the [::] is allowed.

The maintainer is of the opinion that the package should also have a denylist due to a potential vulnerability (or rather design oversight). If someone hosts this on a server, users could then capture screenshots of other web services running locally.

Unless this is strictly for web pages. Something similar here: https://github.com/follow-redirects/follow-redirects/issues/235 (localhost is intended for end users or hosts to deny, and the package is for HTTP/HTTPS.)

This is marked as a LOW since the maintainer is not sure if this is a vulnerability, but it’s still best to highlight it. :)

References

  • github.com/advisories/GHSA-342q-2mc2-5gmp
  • github.com/jasonraimondi/url-to-png
  • github.com/jasonraimondi/url-to-png/commit/f62ff40403ffa1781459d6be8d97b8035888c00c
  • github.com/jasonraimondi/url-to-png/security/advisories/GHSA-342q-2mc2-5gmp
  • nvd.nist.gov/vuln/detail/CVE-2024-39919

Code Behaviors & Features

Detect and mitigate CVE-2024-39919 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 3.1 LOW

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/@jmondi/url-to-png/CVE-2024-39919.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.