uri-template-lite@19.12.0 vulnerabilities

URI Template [RFC 6570] expansion and extraction

Direct Vulnerabilities

Known vulnerabilities in the uri-template-lite package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

uri-template-lite is an URI Template RFC 6570 expansion and extraction.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when an attacker is able to supply arbitrary input to the URI.expand method in the index.js function via the vulnerable regex \{([#&+.\/;?]?)((?:[-\w%.]+(\*|:\d+)?,?)+)\}

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade uri-template-lite to version 22.9.0 or higher.

<22.9.0