CVE-2024-27307CWE-1321

JSONata expression can pollute the "Object" prototype

Critical · published March 6, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
72.7
In the wild
Unconfirmed
What it is

🚨 A crafty JSONata expression can hijack the `Object` constructor, opening the door to chaos! 🔥 Think of it as a sneaky recipe that allows someone to not only cook your dinner but also mess with your oven's controls. Instead of just transforming ingredients, they can tamper with the whole kitchen setup! This could lead to devastating outcomes like denial of service or even remote code execution! An attacker could manipulate the application to execute arbitrary code, effectively turning it into a puppet on their strings. The consequences of this vulnerability are absolutely catastrophic for any application using user-provided JSONata expressions!

Put simply

Think of it as a sneaky recipe that allows someone to not only cook your dinner but also mess with your oven's controls. Instead of just transforming ingredients, they can tamper with the whole kitchen setup! This vulnerability allows a malicious JSONata expression to override properties on the `Object` constructor and prototype due to a flaw in versions 1.4.0 through 1.8.6 and 2.0.0 through 2.0.3. As a result, it opens the door to various unintended behaviors in applications that process these expressions.

What to do

This could lead to devastating outcomes like denial of service or even remote code execution! An attacker could manipulate the application to execute arbitrary code, effectively turning it into a puppet on their strings. The consequences of this vulnerability are absolutely catastrophic for any application using user-provided JSONata expressions! Upgrade to JSONata versions 1.8.7 or 2.0.4 immediately to patch this vulnerability. If an immediate upgrade isn't possible, apply the manual patch as a stopgap measure. Don't wait—secure your applications now! You've got this! Follow these steps, and you’ll have your JSONata expressions locked down tight in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01422 · 72.7th percentile
Weakness
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Published
2024-03-06T19:24Z
EPSS history
Timeline
  • 06 MAR 19:24Z
    JSONata expression can pollute the "Object" prototype
    cvelistv5