MODERATE 5.3

CVE-2026-44288

protobufjs has overlong UTF-8 decoding

Description

Summary

protobufjs includes a minimal UTF-8 decoder used in non-Node and fallback decoding paths. The affected decoder accepted overlong UTF-8 byte sequences and decoded them to their canonical characters instead of replacing them.

The issue concerns overlong encodings and code points outside the Unicode range. protobufjs may still accept some non-strict UTF-8 input for compatibility, so applications should not rely on protobufjs as a general-purpose strict UTF-8 validator.

Impact

An attacker who can provide protobuf binary data decoded through the affected UTF-8 path may be able to bypass application-level checks that inspect raw bytes before protobuf string decoding. For example, bytes that do not contain certain ASCII characters could decode to strings containing those characters.

The practical impact depends on downstream application validation and how decoded strings are used. Node.js Buffer-backed decoding paths are not directly affected when they use Node's native UTF-8 decoding.

Preconditions

  • The application must decode protobuf binary data influenced by an attacker.
  • The affected protobuf string field must be decoded through protobufjs's minimal UTF-8 decoder rather than a native UTF-8 decoder.
  • The application must rely on byte-level filtering or validation before protobuf string decoding.
  • The decoded string must then be used in a security-sensitive context.

Workarounds

Avoid relying only on byte-level filtering before protobuf string decoding with affected versions. Validate decoded strings at the point where they are used, and prefer runtime paths that use native UTF-8 decoding where necessary.

Affected Maven artifacts (4)

ArtifactAffected versionsFixed in
org.mvnpm » protobufjsvia npm protobufjs
< 7.5.6>= 8.0.0, < 8.0.2
7.5.6, 8.0.2
org.mvnpm.at.protobufjs » utf8via npm @protobufjs/utf8
< 1.1.1
1.1.1
org.webjars.npm » protobufjsvia npm protobufjs
< 7.5.6>= 8.0.0, < 8.0.2
7.5.6, 8.0.2
org.webjars.npm » protobufjs__utf8via npm @protobufjs/utf8
< 1.1.1
1.1.1

Blast radius

4affected artifacts
38affected versions
25dependent artifacts (est.)
409dependent versions

8% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
40
2 hops
90
3 hops
29
4 hops
29
5 hops
85
6 hops
136

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (2 packages) . See all on OSV