Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
Published: 07/02/2026 (07/02/2026, 20:19:20 UTC)
Source: GCVE Database
Product: @asymmetric-effort/nogginlessdom

Description

The @asymmetric-effort/nogginlessdom package versions prior to 0.0.22 contain a path traversal vulnerability in the matchFileSnapshot function. This function accepts a filePath parameter without validation, allowing an attacker controlling test input to write arbitrary files anywhere the process has write access when snapshot update mode is enabled. The vulnerability enables creation of intermediate directories and arbitrary file writes, potentially overwriting critical files such as CI pipeline configurations. A fix has been implemented to restrict file writes to within the project root directory.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

npmghsa
@asymmetric-effort/nogginlessdom
Affected versions
<0.0.22

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:09:13 UTC

Technical Analysis

The matchFileSnapshot function in @asymmetric-effort/nogginlessdom (src/assertions/snapshots.ts) accepted an unsanitized filePath parameter. When snapshot update mode is active, this allowed arbitrary file writes to any writable path, including directory creation, due to lack of path validation or symlink resolution. The vulnerability affects versions before 0.0.22. The fix, committed on main, enforces that resolved file paths must reside within the project root directory, rejecting paths outside it with an error.

Potential Impact

An attacker who can control test inputs in environments using vulnerable versions with snapshot update mode enabled can write arbitrary files anywhere writable by the process. This can lead to overwriting or injecting malicious content into configuration files, build artifacts, or CI/CD pipeline definitions, potentially compromising build integrity and execution.

Mitigation Recommendations

A fix is available in version 0.0.22 and later, which validates that file paths are within the project root directory before writing. Users should upgrade to version 0.0.22 or later to mitigate this vulnerability. Until then, avoid enabling snapshot update mode with untrusted inputs. Patch status is confirmed fixed in commit https://github.com/asymmetric-effort/NogginLessDom/commit/785e6ac6e124d1a89b3ccf40bbd75fc8e4cb215d.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-322x-v876-g883
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a46ecb327e9c7971943c63b

Added to database: 07/02/2026, 22:56:51 UTC

Last enriched: 07/02/2026, 23:09:13 UTC

Last updated: 07/02/2026, 23:23:48 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses