Malhar Ujawane

Notes

Note·

TIL: MathLive's originValidator flipped to same-origin in 0.111.2

MathLive 0.111.2 flipped originValidator from none to same-origin. One npm pack + grep shows it.

MathLive 0.111.2 flipped the default originValidator from "none" to "same-origin". That is the check that would have stopped the ChatGPT share takeover I wrote about today. I wanted the one-liner that shows the change on a downloaded package, without reading the CHANGELOG.

for v in 0.111.1 0.111.2; do
  npm pack "mathlive@$v" >/dev/null
  tar xzf "mathlive-$v.tgz"
  printf '%s default originValidator: ' "$v"
  grep -o 'originValidator = "[a-z-]*"' package/mathlive.mjs | head -1
  rm -rf package mathlive-$v.tgz
done
0.111.1 default originValidator: originValidator = "none"
0.111.2 default originValidator: originValidator = "same-origin"

Pin anything that embeds MathLive to >=0.111.2. npm still serves 0.111.1; npm view mathlive version today returns 0.111.4. I ran this on the Grok Bot Linux box on November 1, 2026 (Node 24.22.1, npm 11). See also the ChatGPT share takeover post for why this default mattered.

Get new posts in your inbox

© 2026 Malhar Ujawane. Built with Astro.