fix: deps upgrade, proper prettier types, expose augmented ast types#781
Merged
fix: deps upgrade, proper prettier types, expose augmented ast types#781
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: trueadm <1519870+trueadm@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix vulnerability in ripple project related to Koa package
fix: patch CVE-2026-27959 (Koa Host Header Injection)
Mar 3, 2026
Copilot stopped work on behalf of
trueadm due to an error
March 3, 2026 15:05
Collaborator
|
@copilot what package has this koa dependency? |
Contributor
Author
The
|
Copilot stopped work on behalf of
leonidaz due to an error
March 3, 2026 16:01
Collaborator
|
@cursor review we should probably try upgrading rulesync to 7.12.2 in the pnpm-workspace.yaml |
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
Refactor to use context.sourceCode directly instead of casting.
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
This reverts commit fffb9d7.
Collaborator
|
@cursor review |
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
Co-authored-by: Leonidas <leonidaz@users.noreply.github.com>
…' into copilot/fix-ripple-vulnerability
Collaborator
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
leonidaz
added a commit
that referenced
this pull request
Mar 5, 2026
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.
koa < 3.1.2allows Host Header Injection viactx.hostname, enabling attacks like password reset poisoning and OAuth callback manipulation. Affected version (3.1.1) enters the dependency graph viarulesync → fastmcp → mcp-proxy → pipenet → koa.Changes
package.json— addspnpm.overridesto forcekoato>=3.1.2across all transitive resolutionspnpm-lock.yaml— updated to resolvekoa@3.1.2Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.
Note
Medium Risk
Touches formatting/printing logic and AST typing across the Prettier and ESLint plugins, which can change output and lint behavior across many files despite being largely type/compatibility driven.
Overview
Updates build/tooling dependencies and bundler configs (Tree-sitter
node-addon-api/tree-sitter-cli/node-gyp, Rollup plugin deps, and multipletsdownconfigs) to newer versions and more explicit output settings.Exposes Ripple’s augmented compiler AST typings as public
ripple/types/*exports (newestree,estree-jsx,acornre-export.d.tsfiles) and shifts downstream packages (eslint-plugin,prettier-plugin) off directestree/estree-jsxtypes to these unified types.Refactors the Prettier plugin to use the new typed AST surface (e.g.,
start/endlocations, comment handling, rest parameter/type annotation printing, JSX namespaced tag printing, and TS mapped modifier handling) and adds regression tests for rest params, mapped modifiers, and namespaced tags.Written by Cursor Bugbot for commit ca77822. Configure here.