Skip to content

2.0.5

Choose a tag to compare

@fbernier fbernier released this 15 Oct 15:26
· 7 commits to master since this release
8d67126

Security release. Upgrade if you parse TOML you do not fully trust.

  • Fix exponential backtracking (ReDoS) when scanning unterminated basic and literal strings (GHSA-gq8g-3x53-v8fh)
  • Fix SystemStackError and quadratic scan time on long runs of spaces/tabs (GHSA-mc56-vpwf-3m26)
  • Literal strings no longer treat \' as an escaped quote, per the TOML spec
  • Add SECURITY.md: report vulnerabilities through GitHub private vulnerability reporting
  • Declare racc as a runtime dependency: Ruby 3.3 made it a bundled gem, so under Bundler require "tomlrb" failed unless the app's Gemfile pulled racc in
  • Stop shipping the unused parser.y grammar source in the gem

Both vulnerabilities were reported by @tsigouris007, advised by @kpatsakis. Thank you!

Full changelog: v2.0.4...v2.0.5