VYPR
Critical severityNVD Advisory· Published Oct 14, 2022· Updated May 15, 2025

CVE-2022-37602

CVE-2022-37602

Description

Prototype pollution vulnerability in grunt-karma 4.0.1 allows attackers to pollute object prototypes via the key variable in grunt-karma.js.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Prototype pollution vulnerability in grunt-karma 4.0.1 allows attackers to pollute object prototypes via the `key` variable in `grunt-karma.js`.

Vulnerability

Overview CVE-2022-37602 is a prototype pollution vulnerability found in grunt-karma version 4.0.1, a Grunt plugin for the Karma test runner [1]. The flaw resides in the tasks/grunt-karma.js file, where the key variable is used to set properties on an object without proper validation [4]. This allows an attacker to inject arbitrary properties into an object's prototype, leading to prototype pollution [2].

Exploitation and

Attack Surface The vulnerability is triggered through the key variable in the code at line 109 of grunt-karma.js [4]. An attacker can exploit this by crafting a malicious configuration that is processed by grunt-karma. The issue does not require authentication but relies on the victim loading a compromised configuration file or processing attacker-controlled input. The attack is performed locally or through supply chain scenarios where a user is tricked into using a malicious Gruntfile or Karma configuration [3].

Impact

Successful exploitation allows an attacker to pollute the Object prototype, which can lead to unexpected behavior, denial of service, or potentially arbitrary code execution depending on how the polluted properties are used by downstream code. Prototype pollution is a serious issue in JavaScript applications as it can affect the entire runtime environment [2].

Mitigation

Status As of the advisory date, no official patch has been released for grunt-karma 4.0.1. Users should consider applying manual input validation on the key variable or avoid processing untrusted configuration files. The maintainers have been notified via the public issue tracker [3]. Security teams should monitor for updates or mitigate by restricting the use of affected versions.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
grunt-karmanpm
<= 4.0.1

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.