Skip to main content

Uncontrolled Resource Consumption in js-yaml

Cxec49316b-56df

  • js-yaml
Severity Medium
Score 5.9/10

Summary

The package `js-yaml` before 3.13.0 is vulnerable to Denial of service as the function `storeMappingPair()` in file `lib/js-yaml/loader.js`, doesn't limit the user-supplied yaml, causing the map key to grow exponentially and give out a huge amount of output data, leading to a Denial-of-Service due to excessive memory usage.

  • HIGH
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-400 - Uncontrolled resource consumption

An uncontrolled resource allocation attack (also known as resource exhaustion attack) triggers unauthorized overconsumption of the limited resources in an application, such as memory, file system storage, database connection pool entries, and CPU. This may lead to denial of service for valid users and degradation of the application's functionality as well as that of the host operating system.

Advisory Timeline

  • Published