Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @asymmetric-effort/nogginlessdom
  4. ›
  5. GHSA-322x-v876-g883

GHSA-322x-v876-g883: @asymmetric-effort/nogginlessdom's Path Traversal in matchFileSnapshot allows arbitrary file write

July 2, 2026

The matchFileSnapshot function in src/assertions/snapshots.ts accepted a filePath parameter with zero validation. When snapshot update mode was active (UPDATE_SNAPSHOTS=1 or setUpdateMode('all')), an attacker who controls test input could write arbitrary content to any filesystem path the process has write access to, including creating intermediate directories.

References

  • github.com/advisories/GHSA-322x-v876-g883
  • github.com/asymmetric-effort/NogginLessDom/commit/785e6ac6e124d1a89b3ccf40bbd75fc8e4cb215d
  • github.com/asymmetric-effort/NogginLessDom/security/advisories/GHSA-322x-v876-g883

Code Behaviors & Features

Detect and mitigate GHSA-322x-v876-g883 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 0.0.22

Fixed versions

  • 0.0.22

Solution

Upgrade to version 0.0.22 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/@asymmetric-effort/nogginlessdom/GHSA-322x-v876-g883.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 16 Jul 2026 12:18:32 +0000.