Skip to content

Fix LiquidJS and Morgan Dependabot alerts - #1690

Merged
Priyanshu Agrawal (priyanshu92) merged 2 commits into
mainfrom
users/priyanshu92/dependabot-security-fixes-f5e
Sep 17, 2026
Merged

Priyanshu Agrawal (priyanshu92) merged 2 commits into
mainfrom
users/priyanshu92/dependabot-security-fixes-f5e

Conversation

@priyanshu92

Copy link
Copy Markdown
Contributor

Fix the two open Dependabot alerts covering a LiquidJS memory-limit bypass and Morgan log forging.

Changes

  • Update liquidjs from 10.27.1 to 10.27.2 for alert 265, CVE-2026-69222 (high).
  • Override transitive morgan from 1.11.0 to 1.12.0 for alert 266, CVE-2026-15603 (medium). The latest @vscode/test-web release still resolves vulnerable Morgan; CONTRIBUTING.md documents when to remove the override.
  • Regenerate the lockfile with npm through the approved package feed.

Validation also exposed four existing Liquid autocomplete failures on both the original and patched versions.
Update lookup handling for the current token structure, preserve quoting for bracket keys, and avoid inserting quoted names into dot access or matching unrelated root objects.
Move the mocked autocomplete suite into the default unit-test directory and add regression coverage.

Validation

Run with Node.js 22.23.2:

  • Clean npm ci succeeds.
  • npm run build and npm run compile-web pass across desktop, web, and worker targets.
  • npm test: 180 passing.
  • node node_modules/gulp/bin/gulp.js lint: passes.
  • Four bounded dependency checks pass, covering LiquidJS memory-limit enforcement, normal rendering, and Unicode separator escaping through Koa access logging. The vulnerable cases were reproduced before the updates.

Local bootstrap note: gulp recompile could not download PAC from NuGet (ENOTCONN).
Generating the build-region input with the same gulp pipeline allowed compilation checks to finish.
Webpack reports four warnings and no errors.

- Update liquidjs from 10.27.1 to 10.27.2 for CVE-2026-69222 (high).\n- Override morgan from 1.11.0 to 1.12.0 for CVE-2026-15603 (medium), and document the upstream removal condition.\n- Fix existing Liquid object autocomplete token handling and run its regression tests in the default unit suite.\n- Verify clean npm ci, desktop/web/worker builds, lint, 180 unit tests, and four bounded security checks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c6e4decc-47e7-4674-ac18-53cd4a778656
@priyanshu92
Priyanshu Agrawal (priyanshu92) merged commit 34c30d8 into main Sep 17, 2026
9 checks passed
@priyanshu92
Priyanshu Agrawal (priyanshu92) deleted the users/priyanshu92/dependabot-security-fixes-f5e branch September 17, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants