Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. glance
  4. ›
  5. CVE-2022-25937

CVE-2022-25937: Path traversal vulnerability in glance

February 13, 2023 (updated March 21, 2025)

Versions of the package glance before 3.0.9 are vulnerable to Directory Traversal that allows users to read files outside the public root directory. This is related to but distinct from the vulnerability reported in CVE-2018-3715.

References

  • gist.github.com/lirantal/c8cfb0398c78e558b7d4ac02aae67809
  • github.com/advisories/GHSA-3hjh-5hgx-f5wh
  • github.com/jarofghosts/glance
  • github.com/jarofghosts/glance/commit/8cecfe90286e0c45a5494067f1b592d0ccfeabac
  • nvd.nist.gov/vuln/detail/CVE-2022-25937
  • security.snyk.io/vuln/SNYK-JS-GLANCE-3318395

Code Behaviors & Features

Detect and mitigate CVE-2022-25937 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 3.0.9

Fixed versions

  • 3.0.9

Solution

Upgrade to version 3.0.9 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/glance/CVE-2022-25937.yml

Spotted a mistake? Edit the file on GitLab.

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

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