GHSA-cvfm-xjc8-f2vm Denial of Service in @commercial/subtext
An attacker can crash the application by sending a malformed Content-Encoding header, causing a system error that terminates the service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-cvfm-xjc8-f2vm?
GHSA-cvfm-xjc8-f2vm is a denial of service vulnerability in @commercial/subtext, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Version 5.1.1 of @commercial/subtext is vulnerable to Denial of Service. The Content-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services.
Recommendation
Upgrade to version 5.1.2 or later.
Which versions are affected by GHSA-cvfm-xjc8-f2vm?
2 open source packages ship an affected version, including @commercial/subtext.
| Package | Affected | Fixed in |
|---|---|---|
@commercial/subtext npm | From 5.1.1 | 5.1.2 |
@commercial/subtext npm | From 5.1.1 | 5.1.2 |
How do I fix GHSA-cvfm-xjc8-f2vm?
Upgrade @commercial/subtext to 5.1.2 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-cvfm-xjc8-f2vm being exploited?
There is no known exploitation of GHSA-cvfm-xjc8-f2vm in the wild and no public exploit code.