Skip to content

Write-ups

JSON.parse

Every publicly disclosed report for JSON.parse and what kind of bugs they were.

disclosed reports
1
most reported class
RCE
bug classes found
1

Disclosed reports

Newest first. Only what JSON.parse chose to make public.

RCE

A web security story from 2008: silently securing JSON.parse

The JSON parsing library json2.js used JavaScript's eval to parse JSON text, and its regular expression checks did not account for Unicode format-control characters that JavaScript strips before tokenisation. An attacker could craft a JSON string containing such a character to make eval execute arbitrary JavaScript code.

JSON.parse