CyberChef icon indicating copy to clipboard operation
CyberChef copied to clipboard

Prototype pollution security vulnerability

Open C85297 opened this issue 5 months ago • 2 comments

On 5 June 2026 we received a security vulnerability report from @hyuunnn detailing a vulnerability in the Series Chart operation, where malicious input could result in prototype pollution of the data structures outputted from the operation. Other operations following Series Chart could have their behaviour manipulated by the attacker-controlled prototype, for example, injecting malicious content into their HTML output.

In this case, a demonstration was provided that chained the Series Chart operation with the Parse UDP operation to cause attacker controlled JavaScript to be executed.

Details

When the Series Chart operation parses user-supplied CSV, it accepts __proto__ as a key and uses it to pollute the object. The objToTbale function in src/core/lib/Protocol.mjs, used in a number of IP parsing operations, renders data items within <td> tags without escaping. These bugs can be chained to produce an XSS vulnerability.

Proof of Concept https://gchq.github.io/CyberChef/#recipe=Series_chart('CRLF','Comma','',1,'')Parse_UDP('Raw')&input=X19wcm90b19fLDxpbWcgc3JjPXggb25lcnJvcj1hbGVydChkb2N1bWVudC5kb21haW4pPiwx

Encoded input data is:

__proto__,<img src=x onerror=alert(document.domain)>,1

C85297 avatar Jun 17 '26 10:06 C85297

Fixed by #2569

Fix released in v11.2.0

GCHQDeveloper581 avatar Jun 17 '26 13:06 GCHQDeveloper581

Assigned CVE-2026-57439 and published advisory GHSA-fx6f-382r-j72c

C85297 avatar Jun 24 '26 15:06 C85297