Repository navigation
optimize export/import - #192
Merged
Merged
Conversation
Member
There was a problem hiding this comment.
Do we want a sql sanitizer here as well? For sql injection attack prevention purpose
Member
Author
There was a problem hiding this comment.
This function is used while importing with rawSQL, sql injection doesnt apply here...
Member
|
nit: maybe can add some more in description about what's the optmization so we know better on what to look for |
tonychang04
added a commit
that referenced
this pull request
Sep 10, 2026
* chore(deps): vitest 4.1.11, nodemailer 9.1.1, js-yaml 4.3.2
Clears 7 of the 11 open Dependabot alerts on this repo. The remaining 4 are
covered below with reasons, not left silent.
vitest ^4.1.8 / ^4.1.6 -> ^4.1.11 in backend, packages/ui and
packages/dashboard (each declares its own) 2 alerts, dev
@vitest/mocker lifts to 4.1.11 with vitest
nodemailer ^9.0.3 -> ^9.1.1 4 alerts, runtime
js-yaml override 5.2.3 -> ^4.3.2 1 alert, dev, HIGH
nodemailer is NOT the 6.x -> 9.x major the alert ranges imply -- the repo is
already on 9.0.3, so this is a patch bump. Note 9.1.1 rather than 9.1.0: alert
#192 covers "<= 9.1.0", so 9.1.0 would still be flagged.
js-yaml is the interesting one. The root override pinned 5.2.3, but every
consumer wants ^4.1.x (@eslint/eslintrc, cosmiconfig, csv-to-pg), so a 5.x pin
could not apply to them and the root copy sat on the vulnerable 4.3.1 while the
override looked like it had handled it. ^4.3.2 is the patched release in the
line they actually resolve, so the override now does what it claims.
NOT FIXED, and not fixable:
adm-zip #188 GHSA-vwc7-r8mq-g2x9, ">= 0.5.9, <= 0.6.0", first_patched_version
NONE. 0.6.0 is the latest published version, so there is no
upstream fix to take. Needs a risk acceptance or a replacement
dependency, not a bump.
NOT FIXED, deliberately, both unchanged from #2048:
qs #182/#183 express@4 -> [email protected] pins qs@~6.15.1 and the patch
is 6.16.0, outside it. Needs an express 5 major.
csv-parse #187 dev-only, via pgsql-seed -> [email protected] -> csv-parse ^6.2.1.
pg-seed@latest still requires ^6.2.1, so there is no upstream
fix. The runtime path is already on 7.0.2.
Lock regenerated with npm 11 (`npx npm@11 install --package-lock-only`): npm
10.9.4 fails on this repo with `Cannot read properties of null (reading
'edgesOut')`, which reproduces on clean main with the lock deleted and is not
caused by this change. lockfileVersion stays 3 and `npm ci` under npm 10
installs it cleanly.
Verified: `npm ci` clean; `npm run typecheck` 8/8 turbo tasks; backend suite
203 files / 2,425 tests passed, 21 skipped. First run showed 1 failure that
did not reproduce on re-run -- flake, not this change.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim
* fix(deps): regenerate the js-yaml subtree so no stale edge survives
Greptile's P2 is correct, and I had noticed this and waved it off, which was
wrong. After the override moved from 5.2.3 to ^4.3.2, the lockfile still pinned
`node_modules/@eslint/eslintrc/node_modules/js-yaml` at 5.2.3 -- a version that
satisfies NEITHER the new override NOR @eslint/eslintrc's own ^4.1.1. A
lock-based install and a fresh resolve would therefore have produced different
trees.
Not a security issue: 5.2.3 sits above the vulnerable `>=4.0.0 <4.3.2` range.
It is a lockfile correctness issue, which is worth fixing on its own terms.
Dropped the stale node and re-resolved. There is now exactly ONE js-yaml, at
4.3.2, satisfying both the override and eslintrc.
Verified: `npm ci` clean; `npm ls js-yaml --all` reports 4.3.2 as `overridden`
and `deduped` with NO `invalid` nodes; `npm run typecheck` 8/8 turbo tasks.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015uMMufpCJ4VqNeavrDHJim
---------
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.