Berildocs GitHub

Memory cards

JSONP is script injection with a callback name

confidence: mediumupdated: 2026-11-24status: activewebjsonpscript

Claim#

The endpoint reflects a callback parameter into a JavaScript response with the wrong content type.

Test#

Send callback=alert(1) variants. Check the content type and the wrapper. Load it as a script from another origin.

Proof#

A function call or expression executes in the page.

Failure modes#

A fixed callback is not injectable. A JSON content type with nosniff may block it.