Skip to content

fix: Bump ws from 8.20.0 to 8.21.0#10576

Open
mtrezza wants to merge 1 commit into
parse-community:alphafrom
mtrezza:fix/ws-8.21.0
Open

fix: Bump ws from 8.20.0 to 8.21.0#10576
mtrezza wants to merge 1 commit into
parse-community:alphafrom
mtrezza:fix/ws-8.21.0

Conversation

@mtrezza

@mtrezza mtrezza commented Jul 13, 2026

Copy link
Copy Markdown
Member

Closes #10509

Replaces the Dependabot PR with a fix: release-triggering security update. ws is a direct production dependency.

Changes

  • Bumps ws from 8.20.0 to 8.21.0.
  • Resolves ws advisory GHSA-96hv-2xvq-fx4p (HIGH) — memory-exhaustion DoS.
  • Resolves ws advisory GHSA-58qx-3vcg-4xpx (MEDIUM) — uninitialized memory disclosure.

Breaking Changes

None

Code Changes Required

None — the upgrade is a drop-in replacement (manifest + lock file only).

Summary by CodeRabbit

  • Chores
    • Updated the WebSocket library to a newer version.
    • Refreshed dependency metadata to keep installations consistent.

@parse-github-assistant

Copy link
Copy Markdown

🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review.

Tip

  • Keep pull requests small. Large PRs will be rejected. Break complex features into smaller, incremental PRs.
  • Use Test Driven Development. Write failing tests before implementing functionality. Ensure tests pass.
  • Group code into logical blocks. Add a short comment before each block to explain its purpose.
  • We offer conceptual guidance. Coding is up to you. PRs must be merge-ready for human review.
  • Our review focuses on concept, not quality. PRs with code issues will be rejected. Use an AI agent.
  • Human review time is precious. Avoid review ping-pong. Inspect and test your AI-generated code.

Note

Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect.

Caution

Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code.

@mtrezza

mtrezza commented Jul 13, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

No new commits to review since the last review.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 627a1aa1-0495-4c15-884e-f3372f690e4a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Changes

ws dependency upgrade

Layer / File(s) Summary
Update ws dependency declaration
package.json, package-lock.json
The declared ws dependency and top-level lockfile requirement are updated from 8.20.0 to 8.21.0.
Align lockfile package metadata
package-lock.json
Resolved package entries update version, tarball, integrity, and nested dependency metadata for the ws dependency tree.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: semantic-release-bot, dependabot[bot], parseplatformorg, moumouls, dplewis


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore

❌ Failed checks (1 error, 1 warning)

Check name Status Explanation Resolution
Engage In Review Feedback ❌ Error The lockfile still contains nested ws copies at 8.20.0/8.19.0, so the review feedback wasn’t implemented or meaningfully addressed. Regenerate package-lock.json so nested ws entries resolve to 8.21.0, and respond to the reviewer explaining the change or why the nested copies must remain.
Security Check ⚠️ Warning package-lock still pins vulnerable ws 8.20.0 under parse and 8.19.0 under @parse/push-adapter, so the security fix is incomplete. Regenerate the lockfile (or update the dependent packages) so every ws entry resolves to 8.21.0 and stale nested copies are removed.
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the PR scope and uses an allowed prefix with a clear dependency bump description.
Description check ✅ Passed The description covers the issue, approach, breaking changes, and code impact, though the task checklist is not filled out.
Linked Issues check ✅ Passed The changes correctly bump ws to 8.21.0 in both manifest and lockfile, satisfying #10509.
Out of Scope Changes check ✅ Passed No unrelated code changes are present beyond the ws dependency bump and lockfile alignment.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package-lock.json`:
- Around line 20406-20426: Regenerate package-lock.json using the package
manager so the nested ws entries under parse and `@parse/push-adapter` resolve to
version 8.21.0, removing the stale 8.20.0 and 8.19.0 copies; do not manually
edit version or integrity fields.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dfd033ce-c051-427f-acc6-8fee19f94de7

📥 Commits

Reviewing files that changed from the base of the PR and between 7d4d135 and d859cc1.

📒 Files selected for processing (2)
  • package-lock.json
  • package.json

Comment thread package-lock.json
Comment on lines +20406 to +20426
"node_modules/parse/node_modules/ws": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
"integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
python - <<'PY'
import json

with open("package-lock.json", encoding="utf-8") as f:
    lock = json.load(f)

found = []

def walk(value, path=()):
    if isinstance(value, dict):
        if path and path[-1] == "ws" and "version" in value:
            found.append(("/".join(path), value["version"]))
        for key, child in value.items():
            walk(child, path + (key,))
    elif isinstance(value, list):
        for index, child in enumerate(value):
            walk(child, path + (str(index),))

walk(lock)

for path, version in found:
    print(f"{path}: {version}")

bad = [(path, version) for path, version in found if version != "8.21.0"]
if bad:
    raise SystemExit("Unpatched ws entries remain")
PY

Repository: parse-community/parse-server

Length of output: 382


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path

path = Path("package-lock.json")
lines = path.read_text(encoding="utf-8").splitlines()

for start, end in [(20400, 20435), (40878, 40895)]:
    print(f"\n--- lines {start}-{end} ---")
    for i in range(start - 1, min(end, len(lines))):
        print(f"{i+1}: {lines[i]}")
PY

Repository: parse-community/parse-server

Length of output: 2477


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
import json
from pathlib import Path

lock = json.loads(Path("package-lock.json").read_text(encoding="utf-8"))

def find_ws_entries(value, path=()):
    if isinstance(value, dict):
        if path and path[-1] == "ws" and "version" in value:
            yield (path, value)
        for k, v in value.items():
            yield from find_ws_entries(v, path + (k,))
    elif isinstance(value, list):
        for i, v in enumerate(value):
            yield from find_ws_entries(v, path + (str(i),))

for path, entry in find_ws_entries(lock):
    if entry.get("version") in {"8.19.0", "8.20.0", "8.21.0"}:
        print("/".join(path), entry.get("version"), entry.get("resolved"))
PY

Repository: parse-community/parse-server

Length of output: 425


Remove the stale nested ws copies. package-lock.json still pins dependencies/parse/dependencies/ws to 8.20.0 and dependencies/@parse/push-adapter/dependencies/ws to 8.19.0; regenerate the lockfile so both resolve to 8.21.0 instead of patching integrity fields by hand.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package-lock.json` around lines 20406 - 20426, Regenerate package-lock.json
using the package manager so the nested ws entries under parse and
`@parse/push-adapter` resolve to version 8.21.0, removing the stale 8.20.0 and
8.19.0 copies; do not manually edit version or integrity fields.

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.

1 participant