hawk@3.1.3 vulnerabilities

HTTP Hawk Authentication Scheme

Direct Vulnerabilities

Known vulnerabilities in the hawk 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
  • C
Authentication Bypass

hawk is a library for the HTTP Hawk Authentication Scheme.

Affected versions of this package are vulnerable to Authentication Bypass. The incoming (client supplied) hash of the payload is trusted by the server and not verified before the signature is calculated.

A malicious actor in the middle can alter the payload and the server side will not identify the modification occurred because it simply uses the client provided value instead of verify the hash provided against the modified payload.

According to the maintainers this issue is to be considered out of scope as "payload hash validation is optional and up to developer to implement".

How to fix Authentication Bypass?

There is no fixed version for hawk.

*
  • H
Regular Expression Denial of Service (ReDoS)

hawk is a library for the HTTP Hawk Authentication Scheme.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in header parsing where each added character in the attacker's input increases the computation time exponentially.

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

Upgrade hawk to version 9.0.1 or higher.

<9.0.1