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 — http2: headers validation is non-exhaustive, allows requests with completely empty headers · Issue #10633 · netty/netty

http2: headers validation is non-exhaustive, allows requests with completely empty headers #10633

New issue
Copy link
New issue
Copy link
Open
Open
http2: headers validation is non-exhaustive, allows requests with completely empty headers#10633
Copy link

Description

@mostroverkhov
mostroverkhov
opened on Oct 2, 2020
Issue body actions

Expected behavior

If netty's http2 headers validation is enabled, headers are validated exhaustively as described in spec.

Actual behavior

Only tiny subset from 8.1.2 is accounted.

Looking at HpackDecoder one may assume that at least pseudo-headers are checked, but in reality netty's http2 server handler accepts requests without any pseudo-headers - which are invalid, and should be rejected.

In fact netty's http2 server handler accepts requests without any headers at all.

http2 spec enumerates allowed headers and pseudo-headers in context of potential vulnerabilities,

Note that these requirements are intended to protect against several types of common attacks against HTTP; 
they are deliberately strict because being permissive can expose  implementations to these vulnerabilities

I dont know if these are applied to netty due to extra lax headers checks, but I think they must be stricter so library clients
do not have to apply protocol checks in application code just to avoid NPEs on Http2Headers path(), scheme(), method() etc

Steps to reproduce

Minimal yet complete reproducer code (or URL to code)

Netty version

4.1.52

JVM version (e.g. java -version)

OS version (e.g. uname -a)

Activity

  1. chrisvest
    added 3 commits that reference this issue on Jun 16, 2026

    Add opt-in validation of mandatory pseudo-header fields for HTTP/2 (#…

    91ec8cd

    Auto-port 5.0: Add opt-in validation of mandatory pseudo-header field…

    dc8c609

    Auto-port 4.1: Add opt-in validation of mandatory pseudo-header field…

    a1e9aac
  2. lltopk
    added a commit that references this issue on Oct 24, 2026

    Auto-port 4.1: Add opt-in validation of mandatory pseudo-header field…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.