Hoch

protobuf.js: Code injection through bytes field defaults in generated toObject code

  • Veröffentlicht: 12.05.2026
  • Aktualisiert: 11.10.2026 10:22

Summary

protobufjs generated JavaScript for toObject conversion could include an unsafe expression derived from a schema-controlled bytes field default value. A crafted descriptor with a non-string default value for a bytes field could cause attacker-controlled code to be emitted into the generated conversion function.

Impact

An attacker who can provide or influence a protobuf descriptor may be able to execute arbitrary JavaScript in the context of the process using protobufjs.

This requires the application to load an attacker-controlled schema or descriptor and then convert a message of the affected type with defaults enabled. Applications that only use trusted, application-defined schemas are not directly affected by this issue.

Preconditions

  • The application must allow an attacker to control or influence a protobuf JSON descriptor or equivalent reflected schema.
  • The descriptor must define a bytes field with an attacker-controlled default value.
  • The application must call toObject with defaults enabled for the affected type.

Workarounds

Do not load protobuf schemas or JSON descriptors from untrusted sources with affected versions. If untrusted schemas must be accepted, validate or restrict field options before loading them and run schema processing in an isolated environment.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket protobufjs < 7.5.6, >= 8.0.0, < 8.0.2 7.5.6, 8.0.2

Verweise

CVSS-Wert -
CVSS-Vektor
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Schwäche (CWE)
CWE-94
Plattform
npm
Paket
protobufjs
Veröffentlicht
12.05.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-66ff-xgx4-vchm - CC BY 4.0

Schwachstellenhistorie: protobufjs

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (17) im Archiv
Einträge insgesamt
17
Erste → letzte
10.2018 07.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 2
  • Hoch 6
  • Mittel 9

Veröffentlichungen pro Jahr

  1. 2018: 1
  2. 2019: 0
  3. 2020: 0
  4. 2021: 0
  5. 2022: 1
  6. 2023: 1
  7. 2024: 0
  8. 2025: 0
  9. 2026: 14
Schweregrad:
  1. Hoch · 7.5 CVE-2026-48712 < 7.6.1, >= 8.0.0, < 8.4.1 7.6.1, 8.4.1
  2. protobuf.js: Code injection through bytes field defaults in generated toObject code dieser Eintrag
    Hoch CVE-2026-44293 < 7.5.6, >= 8.0.0, < 8.0.2 7.5.6, 8.0.2
  3. Hoch · 8.1 CVE-2026-44291 < 7.5.6, >= 8.0.0, < 8.0.2 7.5.6, 8.0.2
  4. Hoch · 7.5 CVE-2026-44290 < 7.5.6, >= 8.0.0, < 8.0.2 7.5.6, 8.0.2
  5. Hoch · 7.5 CVE-2026-44289 < 7.5.6, >= 8.0.0, < 8.0.2 7.5.6, 8.0.2
  6. Kritisch · 9.8 CVE-2026-41242 >= 8.0.0, < 8.0.1, < 7.5.5 8.0.1, 7.5.5
  7. Kritisch · 9.8 CVE-2023-36665 >= 7.0.0, < 7.2.5, >= 6.10.0, < 6.11.4 7.2.5, 6.11.4
  8. Hoch · 7.5 CVE-2022-25878 >= 6.11.0, < 6.11.3, >= 6.10.0, < 6.10.3 6.11.3, 6.10.3

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.