Skip to content

fix: pin liquidjs to 10.27.1 for memoryLimit DoS advisories - #480

Merged
jaredwray merged 1 commit into
mainfrom
cursor/liquidjs-security-10-27-1-bf0e
Aug 17, 2026
Merged

fix: pin liquidjs to 10.27.1 for memoryLimit DoS advisories#480
jaredwray merged 1 commit into
mainfrom
cursor/liquidjs-security-10-27-1-bf0e

Conversation

@jaredwray

@jaredwray jaredwray commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Security dependency fix.

Why this change is needed

Aikido reported two liquidjs advisories in pnpm-lock.yaml:

  • CVE-2026-55575 (High): pop filter clones arrays without charging memoryLimit
  • AIKIDO-2026-127306 (Medium): pop/sample filters bypass memoryLimit accounting

Worst-case impact is a denial-of-service via unbounded memory allocation. Both are fixed in liquidjs 10.27.1.

liquidjs is a transitive dependency of ecto (^10.27.0), which had resolved to 10.27.0.

What this PR does

Adds a pnpm override (same pattern as the existing undici pins) so any liquidjs below 10.27.1 is forced to 10.27.1, and updates the lockfile accordingly.

No application source changes. Existing tests cover template rendering through ecto.

Verification

  • pnpm why liquidjs reports a single copy: liquidjs@10.27.1 via ecto@5.0.0
  • pnpm test: 17 files / 866 tests passed, 100% statement/branch/function/line coverage
Open in Web Open in Cursor 

Add a pnpm override so ecto's ^10.27.0 range cannot resolve 10.27.0.
This covers CVE-2026-55575 and AIKIDO-2026-127306 (pop/sample filters
bypass memoryLimit accounting).

Co-authored-by: Jared Wray <me@jaredwray.com>
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ac4808c) to head (fa2876f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #480   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2760      2760           
  Branches       846       837    -9     
=========================================
  Hits          2760      2760           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray marked this pull request as ready for review August 17, 2026 18:32
@jaredwray
jaredwray merged commit f0e4548 into main Aug 17, 2026
13 of 14 checks passed
@jaredwray
jaredwray deleted the cursor/liquidjs-security-10-27-1-bf0e branch August 17, 2026 18:32

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa2876f25f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pnpm-workspace.yaml
overrides:
"undici@>=8.0.0 <8.9.0": "8.10.0"
"undici@>=7.0.0 <7.29.0": "7.29.0"
"liquidjs@<10.27.1": "10.27.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Propagate the LiquidJS minimum to package consumers

When a released Docula version is installed or updated in a project whose lockfile already contains ecto@5.0.0 with liquidjs@10.27.0, this root-only pnpm override is not inherited by the consumer's package manager. Since the published package.json still depends on ecto@^5.0.0 and ecto's ^10.27.0 range continues to accept the vulnerable release, the consumer may retain 10.27.0, meaning this security change protects this repository and bundled builds but not all package users; encode the raised transitive floor in published dependency metadata, such as through an ecto release that requires LiquidJS 10.27.1 or later.

Useful? React with 👍 / 👎.

@jaredwray jaredwray mentioned this pull request Aug 17, 2026
4 tasks
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