GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inspector: fix out-of-bounds read in ws frame decoding by Nashit-h · Pull Request #64618 · nodejs/node

Conversation

@Nashit-h

@Nashit-h Nashit-h commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

decode_frame_hybi17 checks the announced payload length against buffer.size(), but the payload is read from it + kMaskingKeyWidthInBytes, after the iterator has already walked past the two byte header and the extended length field. A client that sends only the two header bytes of a masked frame, 0x81 0xFD, underflows buffer.size() - kMaskingKeyWidthInBytes to SIZE_MAX, passes the check, and the unmasking loop reads 125 bytes past a two byte vector; the bytes it picks up go to OnWsFrame and back out to the peer. Measuring against what is left after the header fixes both that underflow and the header bytes the old check never accounted for.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot

nodejs-github-bot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/inspector
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol. needs-ci PRs that need a full CI run. labels Jul 20, 2026
legendecas
legendecas requested changes Jul 21, 2026
View reviewed changes
Comment thread test/cctest/test_inspector_socket.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/inspector_socket.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

cola119
cola119 approved these changes Jul 26, 2026
View reviewed changes
@cola119 cola119 added request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. and removed needs-ci PRs that need a full CI run. labels Jul 26, 2026
@Nashit-h

Nashit-h commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

gentle ping

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@sxa sxa mentioned this pull request Aug 28, 2026
Auto Start CI delayed running 2 - 3 hours instead of every 5 minutes nodejs/build#4443
Closed
@panva panva removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Aug 28, 2026
legendecas
legendecas approved these changes Aug 28, 2026
View reviewed changes
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@nodejs-github-bot

nodejs-github-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/76688/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@legendecas legendecas added author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Sep 7, 2026
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Sep 7, 2026
@nodejs-github-bot

This comment was marked as outdated.

Sign in to view
@panva panva added commit-queue-squash PRs the Commit Queue should land as one squashed commit. and removed commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. labels Sep 8, 2026
@panva panva closed this Sep 8, 2026
@panva panva reopened this Sep 8, 2026
@panva panva removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 8, 2026
@panva

panva commented Sep 8, 2026

Copy link
Copy Markdown
Member

@Nashit-h please fix the linter issues, rebase and force push.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Sep 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.69%. Comparing base (d44625a) to head (c0ef71e).
⚠️ Report is 126 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64618      +/-   ##
==========================================
- Coverage   90.69%   90.69%   -0.01%     
==========================================
  Files         797      797              
  Lines      278787   278788       +1     
  Branches    53607    53609       +2     
==========================================
- Hits       252858   252836      -22     
- Misses      16292    16300       +8     
- Partials     9637     9652      +15     
Files with missing lines Coverage Δ
src/inspector_socket.cc 82.90% <100.00%> (+0.04%) ⬆️

... and 30 files with indirect coverage changes

🚀 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cola119
cola119 approved these changes Sep 12, 2026
View reviewed changes

@cola119 cola119 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm when the formatter error is fixed

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Nashit-h
inspector: fix out-of-bounds read in ws frame decoding
c0ef71e
Signed-off-by: nashit hayyat <[email protected]>
@Nashit-h
Nashit-h force-pushed the ws-frame-bounds-check branch from 1958e12 to c0ef71e Compare October 31, 2026 05:49
@Nashit-h

Nashit-h commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Done. Rebased on main, squashed the two commits into one, and applied the clang-format reflow on the FRAME_BODY initializer that format-cpp was asking for. No code changes beyond that line wrap.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

legendecas
legendecas approved these changes Nov 10, 2026
View reviewed changes
@legendecas legendecas added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Nov 10, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 10, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78957/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78978/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@legendecas legendecas added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 11, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 93df195 into nodejs:main Nov 11, 2026
69 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Landed in 93df195

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 11, 2026
aduh95 pushed a commit that referenced this pull request Nov 11, 2026
@Nashit-h @aduh95
inspector: fix out-of-bounds read in ws frame decoding
70d664a
Signed-off-by: nashit hayyat <[email protected]>
PR-URL: #64618
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Kohei Ueno <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha) #67415
Merged
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@Nashit-h @aduh95
inspector: fix out-of-bounds read in ws frame decoding
f667d5e
Signed-off-by: nashit hayyat <[email protected]>
PR-URL: #64618
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Kohei Ueno <[email protected]>
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@Nashit-h @aduh95
inspector: fix out-of-bounds read in ws frame decoding
b8bfb2a
Signed-off-by: nashit hayyat <[email protected]>
PR-URL: #64618
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Kohei Ueno <[email protected]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@Nashit-h @gabylb
inspector: fix out-of-bounds read in ws frame decoding
31a1606
Signed-off-by: nashit hayyat <[email protected]>
PR-URL: nodejs#64618
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Kohei Ueno <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@legendecas legendecas legendecas approved these changes
@cola119 cola119 cola119 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash PRs the Commit Queue should land as one squashed commit. inspector Issues and PRs related to the V8 inspector protocol.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@Nashit-h @nodejs-github-bot @panva @legendecas @cola119
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.