Skip to content

v2.3.1

Latest

Choose a tag to compare

@keichi keichi released this 11 Nov 02:59
· 74 commits to master since this release

Security fix

Fixes a code injection vulnerability (GHSA-xmxc-6c22-m377) where string-typed options were interpolated verbatim into the generated parser code. Applications that build parser definitions from untrusted input should upgrade.

Affected options: length of string, buffer, array, wrapped and seek; lengthInBytes and key of array; tag of choice; offset of pointer; and the alias passed to namely().

Breaking change

These options now only accept identifier paths (e.g. "len", "$parent.len"). Expressions such as "len - 1" are rejected at compile time; use a function instead (e.g. function () { return this.len - 1; }).

Full Changelog: v2.3.0...v2.3.1