CVE-2026-54656 in datamodel-code-generatorthông tin

Tóm tắt

Bởi VulDB • 29/07/2026

datamodel-code-generator tạo ra các mô hình Pydantic v2, dataclasses, TypedDict và msgspec.Struct từ OpenAPI, JSON Schema, GraphQL, Avro, Protobuf cũng như dữ liệu thô ở định dạng JSON, YAML hoặc CSV. Từ phiên bản 0.52.1 đến 0.60.2, datamodel-code-generator nội suy (interpolates) các bộ xác thực (validators) từ --extra-template-data trong src/datamodel_code_generator/model/pydantic_v2/base_model.py thông qua hàm _process_validators vào các trình trang trí (@field_validator decorators) mà không có cơ chế xác thực an toàn, cho phép thực thi mã Python khi mô hình Pydantic v2 được tạo ra bị nhập khẩu. Vấn đề này đã được khắc phục trong phiên bản 0.60.2.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

chịu trách nhiệm

GitHub M

Đặt trước

15/06/2026

Tiết lộ

29/07/2026

Kiểm duyệt

được chấp nhận

EPSS

0.00000

KEV

không

Các hoạt động

thấp

Nguồn

Might our Artificial Intelligence support you?

Check our Alexa App!