hawk@7.0.10 vulnerabilities

HTTP Hawk Authentication Scheme

Direct Vulnerabilities

Known vulnerabilities in the hawk package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable 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