Dependabot alert #547 flags image-size 1.2.1 in the react-native
example lockfile (GHSA: ICNS parser infinite loop, fixed in 2.0.3).
Dependabot cannot fix it on its own because metro 0.83.5 requires
image-size ^1.0.2.
metro 0.83.8 no longer depends on image-size at all and fits the
existing ^0.83.3 range from @react-native/community-cli-plugin, so
updating the metro packages in the lockfile removes the vulnerable
package without an override. package.json is unchanged.
Tests: `npm ci` in examples/react-native succeeds and `npm ls
image-size` no longer resolves it from the example's own tree.
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.10.0
to 1.12.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a
href="https://github.com/ljharb/shell-
quote/blob/main/CHANGELOG.md">shell-quote's changelog</a>.</em></p>
<blockquote> <h2><a href="https://github.com/ljharb/shell-
quote/compare/v1.11.0...v1.12.0">v1.12.0</a> - 2026-10-02</h2>
<h3>Fixed</h3> <ul> <li>[New] <code>parse</code>: support here-documents
(<code>&lt;&lt;</code>) <a
href="https://redirect.github.com/ljharb/shell-
quote/issues/31"><code>[#31](https://github.com/ljharb/shell-
quote/issues/31)</code></a></li> </ul> <h3>Commits</h3> <ul> <li>[New]
<code>parse</code>: support tab-stripping here-documents
(<code>&lt;&lt;-</code>) <a
href="https://github.com/ljharb/shell-quote/commit/dbfac376d4065d37539d3
abdb5e76847f93797d3"><code>dbfac37</code></a></li> <li>[New]
<code>parse</code>: support output process substitution
(<code>&gt;(</code>) <a href="https://github.com/ljharb/shell-quote/
commit/20533154bb57809c80f55318b8493aef49505f4e"><code>2053315</code></a
></li> <li>[New] <code>parse</code>: support the <code>case</code> test-
next terminator (<code>;;&</code>) <a
href="https://github.com/ljharb/shell-quote/commit/7d688b9bec1917a22cccd
4d4c887128a9c66e8a0"><code>7d688b9</code></a></li> <li>[New]
<code>parse</code>: support the <code>case</code> fall-through
terminator (<code>;&</code>) <a
href="https://github.com/ljharb/shell-quote/commit/f27010ed04bcd925795b3
50afb1c49e36bbd1ba3"><code>f27010e</code></a></li> <li>[New]
<code>parse</code>: support redirecting output despite
<code>noclobber</code> (<code>&gt;|</code>) <a
href="https://github.com/ljharb/shell-quote/commit/b78d19c14da6356cc12c4
6b3478203247ab8a295"><code>b78d19c</code></a></li> <li>[New]
<code>parse</code>: support opening a file for reading and writing
(<code>&lt;&gt;</code>) <a
href="https://github.com/ljharb/shell-quote/commit/21cc333eb0ce5bf094f59
5b7fdc01b3447ffd4b0"><code>21cc333</code></a></li> <li>[New]
<code>parse</code>: support redirecting stdout and stderr
(<code>&&gt;</code>) <a href="https://github.com/ljharb/shell-qu
ote/commit/6ad6cd215f89adcc29dd601e085fa54083c2f911"><code>6ad6cd2</code
></a></li> <li>[New] <code>parse</code>: support appending stdout and
stderr (<code>&&gt;&gt;</code>) <a
href="https://github.com/ljharb/shell-quote/commit/90cde9cfd8af30fcb65e9
fd2cb2f9e181d3f103b"><code>90cde9c</code></a></li> <li>[Dev Deps] update
<code>@ljharb/eslint-config</code> <a
href="https://github.com/ljharb/shell-quote/commit/3a7b4ae3960c3ff441393
2e276c5b0ecb3a2b456"><code>3a7b4ae</code></a></li> </ul> <h2><a
href="https://github.com/ljharb/shell-
quote/compare/v1.10.0...v1.11.0">v1.11.0</a> - 2026-09-29</h2>
<h3>Fixed</h3> <ul> <li>[Refactor] <code>quote</code>: drop a replace
that can never match in the single-quote branch <a
href="https://redirect.github.com/ljharb/shell-
quote/issues/15"><code>[#15](https://github.com/ljharb/shell-
quote/issues/15)</code></a></li> <li>[New] <code>parse</code>: support
bash ANSI-C quoting (<code>$'...'</code>) <a
href="https://redirect.github.com/ljharb/shell-
quote/issues/32"><code>[#32](https://github.com/ljharb/shell-
quote/issues/32)</code></a></li> </ul> <h3>Commits</h3> <ul> <li>[Fix]
<code>quote</code>: reject line terminators in tokens after a
<code>comment</code> <a href="https://github.com/ljharb/shell-quote/comm
it/6002b2ed90c6b83095eb272b6b0adaf3a172b0bc"><code>6002b2e</code></a></l
i> <li>[Fix] <code>parse</code>: preserve text after special shell
parameters <a href="https://github.com/ljharb/shell-quote/commit/81b08a5
32e898a3627f9305fa13d643ffa82a9d3"><code>81b08a5</code></a></li>
<li>[Fix] <code>parse</code>: an escaped backslash does not escape the
character after it <a href="https://github.com/ljharb/shell-quote/commit
/d708019016ce26e1a8a05af4b296e35ef8095c9e"><code>d708019</code></a></li>
<li>[Fix] <code>quote</code>: preserve <code>!</code> in arguments that
also contain <code>'</code> <a href="https://github.com/ljharb/shell-quo
te/commit/ad399279dbbbd086967d2040c1558b4888b074e6"><code>ad39927</code>
</a></li> <li>[Fix] <code>parse</code>: treat <code>$_name</code> as a
variable name, not <code>$_</code> followed by text <a
href="https://github.com/ljharb/shell-quote/commit/28f88cd422ae4046aca95
56c4b74ca90b0ea7f6b"><code>28f88cd</code></a></li> <li>[Fix]
<code>quote</code>: preserve empty glob patterns <a
href="https://github.com/ljharb/shell-quote/commit/35c9b97a744211091b772
f145bef0b6a5562b68e"><code>35c9b97</code></a></li> <li>[Fix]
<code>quote</code>: escape <code>~</code> in glob patterns to prevent
shell tilde-expansion <a href="https://github.com/ljharb/shell-quote/com
mit/239d49cae6d231436ea4e676850037018c790c49"><code>239d49c</code></a></
li> <li>[Dev Deps] update <code>@ljharb/eslint-config</code>,
<code>auto-changelog</code>, <code>eslint</code>, <code>evalmd</code> <a
href="https://github.com/ljharb/shell-quote/commit/b1e406ed4287a134cc649
db47b9a59e21b304472"><code>b1e406e</code></a></li> <li>[meta] npmignore
some files <a href="https://github.com/ljharb/shell-quote/commit/ebfc308
0cf5f68db5edfddfba49dc8c4ccacd2d5"><code>ebfc308</code></a></li>
<li>[actions] add permissions <a href="https://github.com/ljharb/shell-q
uote/commit/3429b0d349211786765e9e68478e029d96ad44e9"><code>3429b0d</cod
e></a></li> <li>[actions] set least-privilege <code>cache-mode</code> <a
href="https://github.com/ljharb/shell-quote/commit/36f23944db50dd3f0df4d
a9c7cba0bb63df05f64"><code>36f2394</code></a></li> <li>[Dev Deps] update
<code>eslint</code> <a href="https://github.com/ljharb/shell-quote/commi
t/6de9a41ecfc4fe9f9546df08866c8ead039f8909"><code>6de9a41</code></a></li
> </ul> </blockquote> </details> <details> <summary>Commits</summary>
<ul> <li><a href="https://github.com/ljharb/shell-quote/commit/6ecb8aa61
8ba6dc6c3b087fce6d7660320d2adeb"><code>6ecb8aa</code></a> v1.12.0</li>
<li><a href="https://github.com/ljharb/shell-quote/commit/3a7b4ae3960c3f
f4413932e276c5b0ecb3a2b456"><code>3a7b4ae</code></a> [Dev Deps] update
<code>@ljharb/eslint-config</code></li> <li><a
href="https://github.com/ljharb/shell-quote/commit/7d688b9bec1917a22cccd
4d4c887128a9c66e8a0"><code>7d688b9</code></a> [New] <code>parse</code>:
support the <code>case</code> test-next terminator
(<code>;;&</code>)</li> <li><a
href="https://github.com/ljharb/shell-quote/commit/f27010ed04bcd925795b3
50afb1c49e36bbd1ba3"><code>f27010e</code></a> [New] <code>parse</code>:
support the <code>case</code> fall-through terminator
(<code>;&</code>)</li> <li><a href="https://github.com/ljharb/shell-
quote/commit/90cde9cfd8af30fcb65e9fd2cb2f9e181d3f103b"><code>90cde9c</co
de></a> [New] <code>parse</code>: support appending stdout and stderr
(<code>&>></code>)</li> <li><a
href="https://github.com/ljharb/shell-quote/commit/6ad6cd215f89adcc29dd6
01e085fa54083c2f911"><code>6ad6cd2</code></a> [New] <code>parse</code>:
support redirecting stdout and stderr (<code>&></code>)</li>
<li><a href="https://github.com/ljharb/shell-quote/commit/20533154bb5780
9c80f55318b8493aef49505f4e"><code>2053315</code></a> [New]
<code>parse</code>: support output process substitution
(<code>>(</code>)</li> <li><a href="https://github.com/ljharb/shell-q
uote/commit/b78d19c14da6356cc12c46b3478203247ab8a295"><code>b78d19c</cod
e></a> [New] <code>parse</code>: support redirecting output despite
<code>noclobber</code> (<code>>|</code>)</li> <li><a
href="https://github.com/ljharb/shell-quote/commit/21cc333eb0ce5bf094f59
5b7fdc01b3447ffd4b0"><code>21cc333</code></a> [New] <code>parse</code>:
support opening a file for reading and writing
(<code>\<></code>)</li> <li><a
href="https://github.com/ljharb/shell-quote/commit/dbfac376d4065d37539d3
abdb5e76847f93797d3"><code>dbfac37</code></a> [New] <code>parse</code>:
support tab-stripping here-documents (<code><<-</code>)</li>
<li>Additional commits viewable in <a
href="https://github.com/ljharb/shell-
quote/compare/v1.10.0...v1.12.0">compare view</a></li> </ul> </details>
<br />
[](https://docs.github.com/en/github/managing-security-
vulnerabilities/about-dependabot-security-updates#about-compatibility-
scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end)
---
<details> <summary>Dependabot commands and options</summary> <br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/tursodatabase/turso/network/alerts).
</details>
Closes#9867
Expanding input shaped like {a}}}}...,z} takes time quadratic in the
number of literal } characters. The parser rewrites the string and
restarts the scan once per brace, and each rewrite also grows the
working string by about 25 characters. A 128 KB pattern blocks the
event loop for close to half a minute. The max and maxLength caps do
not help because the cost is in parsing, before any results exist.
Every major line in use here is affected, so this moves each pinned
copy to the patched release on its own line: 1.1.21, 2.1.7 and 5.0.12.
npm also re-synced stale metadata for the locally linked
@tursodatabase packages while rewriting the lockfiles.
Tests: ran the advisory's reproduction against serverless/javascript
before and after npm ci. On 2.1.4, n=32000 took 2358 ms. On 2.1.7 it
took 15 ms.
Dependabot flagged five advisories against the example's lockfile:
@babel/core arbitrary file read, qs stringify DoS, launch-editor NTLMv2
hash disclosure, and fast-xml-parser comment/CDATA injection.
Four clear through `npm audit fix` without touching package.json.
fast-xml-parser arrives via @react-native-community/cli, whose 20.0.0 pin
still resolves the 4.x line, so bump the three CLI pins to 20.2.0 to pick
up fast-xml-parser 5.11.1, past the 5.7.0 fix.
The two image-size advisories stay open. Their range is <=2.0.2 and 2.0.2
is the newest published version, so no patched release exists yet, and
metro pins image-size ^1.0.2 anyway.
Tests: npm install succeeds; npm audit reports only the image-size chain
Refresh the binding and example locks to fixed brace-expansion, js-yaml, ws, and Babel SystemJS plugin versions. image-size remains unchanged because upstream has not published a fixed release.
Tests: npm ci --ignore-scripts in both projects; npm run typescript in bindings/react-native; npm audit --package-lock-only
Co-authored-by: pedro muniz <pedro.muniz.carlo@gmail.com>
Commit 59bfb15f3 added .gitattributes with '*.bat text eol=crlf', but
bindings/java/gradlew.bat and examples/react-native/android/gradlew.bat
were committed with crlf blobs and missed by the renormalize pass. Git
stores text files with lf in the index and only converts to crlf on
checkout, so the stale crlf blobs made these files show up as fully
modified whenever anything renormalized them.
git add --renormalize rewrites the blobs to lf; checkouts still produce
crlf on disk via the eol=crlf attribute.
Bump eslint from ^8 to ^10.2.0 in bindings/react-native and
examples/react-native to resolve dependabot alerts for vulnerable
transitive dependencies (minimatch, flatted, picomatch, etc).
Migrate examples/react-native from .eslintrc.js to eslint.config.js
(flat config) since eslint 10 dropped legacy config support. Add
@eslint/eslintrc for FlatCompat bridge with @react-native/eslint-config.
Addresses GHSA-f23m-r3pf-42rh / CVE-2026-2950: lodash versions <= 4.17.23
are vulnerable to prototype pollution in `_.unset` and `_.omit`. The
prior fix for CVE-2025-13465 only guarded against string key members,
so an attacker can bypass it by passing array-wrapped path segments,
allowing deletion of properties from built-in prototypes such as
`Object.prototype`, `Number.prototype`, and `String.prototype`.
lodash is only used transitively by dev dependencies in our JS example
and test projects (ava, react-native toolchain), but bump it anyway to
clear the dependabot alert.
Forward Rust tracing logs to JavaScript via a user-provided callback
in setup(), matching the pattern used by Go and Python bindings. The C
callback copies log data and schedules JS execution via CallInvoker to
handle cross-thread safety.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pass the NativeConnection to Statement so run() can read
lastInsertRowid from it after execution. Previously it was
hardcoded to 0 with a TODO comment.
Also add a lastInsertRowid assertion to the React Native example
app's INSERT test to verify the fix.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>