Description
anchorme through 3.0.8 contains a regular expression denial of service vulnerability in the IPv6 host extraction regex due to catastrophic backtracking. Attackers can supply specially crafted input strings with repeated patterns to cause exponential regex engine backtracking, blocking the Node.js event loop and denying service to other requests.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| alexcorvi | anchorme | ≤ 3.0.8 | — |
References
- https://gist.github.com/mmadersbacher/46050b4224eb979431986cdef1dd2ad3 third-party-advisory
- https://github.com/alexcorvi/anchorme.js/blob/f3ae9850baa344f27b46bb149e9b891831d273b1/src/index.ts#L109 technical-description
- https://www.npmjs.com/package/anchorme product
- https://github.com/alexcorvi/anchorme.js product
- VulnCheck Advisory: anchorme through 3.0.8 Regular Expression Denial of Service third-party-advisory
- https://gist.github.com/R3tro16/92948206e9893a3739b91746439384ab technical-description exploit