THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-77xj-x4rm-935c (high) — datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory

[GHSA] GHSA-77xj-x4rm-935c (high) — datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory

highgithub_advisoriesPublished 2026-10-08

GHSA-77xj-x4rm-935c Severity: high CVE: CVE-2026-107377

datamodel-code-generator: Protobuf weak-import path traversal allows files to be written outside the temporary directory

## Summary

When processing an attacker-controlled Protobuf schema, vulnerable versions of `datamodel-code-generator` could write a generated weak-import stub outside the intended `__weak_imports__` temporary directory. A

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-77xj-x4rm-935c