Skip to content

quic: validate :path in sendHeaders - #64936

Open
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:quicpath
Open

quic: validate :path in sendHeaders#64936
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:quicpath

Conversation

@Archkon

@Archkon Archkon commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Fixes: #64924

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3. labels Aug 1, 2026
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.29%. Comparing base (a4aa3c0) to head (0f8f3bd).
⚠️ Report is 123 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main   #64936     +/-   ##
=========================================
  Coverage   90.28%   90.29%             
=========================================
  Files         760      759      -1     
  Lines      247061   248308   +1247     
  Branches    46592    46853    +261     
=========================================
+ Hits       223058   224201   +1143     
- Misses      15491    15522     +31     
- Partials     8512     8585     +73     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)

... and 105 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.

Comment thread lib/internal/quic/quic.js
Reject invalid :path values before passing headers to nghttp3.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
Comment thread lib/internal/quic/quic.js
if (value[0] !== '/' && value !== '*') {
throw new ERR_INVALID_ARG_VALUE(
'headers.:path', path, 'must start with "/"');
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not convinced this is the correct place for this validation. It is http specific while sendHeaders here could apply to other quic applications in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quic: sendHeaders with non conforming path

4 participants