Skip to content
OpenAdvisories

Package · npm

@asymmetric-effort/nogginlessdom

2 known vulnerabilities.

2 results · Feed

  • Medium —

    @asymmetric-effort/nogginlessdom vulnerable to ReDoS via user-controlled regex in HTMLInputElement pattern validation

    ## Summary The `HTMLInputElement.checkValidity()` method constructed a `RegExp` directly from the user-controlled `pattern` property without any sanitization or timeout protection. This allowed an attacker to inject a regex with catastrophic backtracking, fre…

  • High —

    @asymmetric-effort/nogginlessdom's Path Traversal in matchFileSnapshot allows arbitrary file write

    ## Summary 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…