Repository navigation
Important
Security: This release fixes GHSA-6jg4-2m63-p9xr, a cross-site scripting issue in the JavaScript escaper of Herb::Engine. ERB output inside a JavaScript template literal in a <script> element was not escaped for backticks and $, so a value could close the literal or run a ${...} expression. Versions 0.7.0 through 0.11.2 are affected.
Only applications that render templates with Herb::Engine directly are affected. ReActionView and Rails applications are not, since ReActionView leaves escaping to Action View. If you use Herb::Engine directly, upgrade to 0.11.3. See the advisory for details, detection steps and workarounds.
Thanks to the Artiphishell team for reporting this.
Engine
- Escape backticks and
$inHerb::Engine.js(GHSA-6jg4-2m63-p9xr) - Escape block expressions like
<%= helper do %>inside<script>,<style>and attribute values with the matching context escape function (GHSA-6jg4-2m63-p9xr) - Quote unquoted attribute values that contain ERB output, so the output can't add attributes
- Remove redundant guard and keep parked statics within the template's lines by @Stiwyy in #2924
Parser
- Fix two crashes in ActionView tag helper transforms by @marcoroth in #2945
- Fix dot-notation tag names reading past the source by @marcoroth in #2946
- Fix crash on ERB attribute names without a value by @marcoroth in #2947
- Fix leaking the helper name of a void element helper with a block by @marcoroth in #2953
- Fix dropped branches when
caseand its condition share an ERB tag by @marcoroth in #2954 - Fix leaking the attributes of a
tag.attributescall without static attributes by @marcoroth in #2956 - Fix dropping the left side of
||around an Action View helper by @marcoroth in #2958 - Keep partial and locals of
renderwith interpolated name by @marcoroth in #2959 - Make the advice in
rendererrors valid Ruby by @marcoroth in #2962
Ruby
- Keep one line comments in extracted Ruby when the ERB tag is alone on its line by @radanskoric in #2789
- Fix diffing elements with a conditional open tag by @marcoroth in #2948
Linter
Rule Updates
- Check nested output and require outermost serialization in
erb-no-unsafe-script-interpolationby @marcoroth in #2970 - Fix
erb-no-extra-newlineautofix deleting the wrong character by @kataokatsuki in #2918 - Fix
erb-no-trailing-whitespaceautofix at end of file by @davidenglishmusic in #2923 - Fix
html-no-duplicate-attributesfalse positives in loops by @htetwunsan in #2969 - Don't flag adjacent string literals in
actionview-no-dynamic-partial-pathby @marcoroth in #2961 - Use the framework option from global config by @palkan in #2922
Linter CLI
- Disable the generic JS-to-WASM wrapper to avoid
SIGILLin workers by @marcoroth in #2974
Formatter
- Preserve compact trimmed ERB blocks by @joelhawksley in #2968
- Preserve newlines after trailing Ruby comments by @joelhawksley in #2964
- Keep disable comments on ERB opening tags by @joelhawksley in #2966
Client
- Read
$valuefrom the element that carries the action by @marcoroth in #2901 - Send each copy of a partial its own state in server mode by @marcoroth in #2902
- Ask the server on every change to a state a server-rendered conditional reads by @marcoroth in #2904
Dev Tools
- Add a "Copy path to clipboard" editor option by @marcoroth in #2960
- Dev Server: Honor port option for
herb devby @hschne in #2907
Internals
- C: Add AFL++ and libFuzzer fuzzers for the C library by @marcoroth in #2949
- CI: Fuzz the C library every night with seeds from herb-corpus by @marcoroth in #2950
- Linter: Test
javascript_tagwhen only the config names Action View by @viktorianer in #2853 - Linter: Use
isPositionEqualinstead of comparing line and column by hand by @marcoroth in #2938
Dependencies
- Bump rubydex from v0.4.3 to v0.4.4 by @dependabot in #2893
- Bump nx from 23.3.0 to 24.0.7 by @dependabot in #2944
- Bump vscode-languageserver from 10.1.2 to 11.0.0 by @dependabot in #2896
- Bump vscode-languageclient from 10.1.2 to 11.0.0 by @dependabot in #2895
- Bump vscode-languageclient from 11.0.0 to 11.0.1 by @dependabot in #2942
- Bump vscode-languageserver-types from 3.18.3 to 3.18.6 by @dependabot in #2943
- Bump rolldown from 1.2.15 to 1.2.16 by @dependabot in #2899
- Bump oxlint from 1.87.0 to 1.93.0 by @dependabot in #2917
- Bump vite from 8.3.5 to 8.3.8 by @dependabot in #2915
- Bump concurrently from 10.0.5 to 10.0.7 by @dependabot in #2916
- Bump prettier from 3.9.10 to 3.10.1 by @dependabot in #2935
- Bump postcss-selector-parser from 7.1.7 to 7.2.1 by @dependabot in #2934
- Bump @types/node from 26.6.5 to 26.6.6 by @dependabot in #2933
- Bump @vitest/ui from 5.0.5 to 5.1.2 by @dependabot in #2940
- Bump rimraf from 6.1.3 to 6.1.4 by @dependabot in #2941
- Bump tar from 7.5.22 to 7.5.24 by @dependabot in #2972
New Contributors
- @palkan made their first contribution in #2922
- @kataokatsuki made their first contribution in #2918
- @htetwunsan made their first contribution in #2969
- @Stiwyy made their first contribution in #2924
Commits
Full Changelog: v0.11.2...v0.11.3