# CVE-2023-23619: Improper Control of Generation of Code ('Code Injection') in @asyncapi/modelina

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2023-01-26 · Modified: 2025-03-10
- Aliases: GHSA-4jg2-84c2-pj95
- Record: https://cvemate.com/vulnerability/CVE-2023-23619 · JSON: https://cvemate.com/vulnerability/CVE-2023-23619/json

## Description

```text
Modelina is a library for generating data models based on inputs such as AsyncAPI, OpenAPI, or JSON Schema documents. Versions prior to 1.0.0 are vulnerable to Code injection. This issue affects anyone who is using the default presets and/or does not handle the functionality themself. This issue has been partially mitigated in version 1.0.0, with the maintainer's GitHub Security Advisory (GHSA) noting "It is impossible to fully guard against this, because users have access to the original raw information. However, as of version 1, if you only access the constrained models, you will not encounter this issue. Further similar situations are NOT seen as a security issue, but intended behavior." The suggested workaround from the maintainers is "Fully custom presets that change the entire rendering process which can then escape the user input."
```

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 1.116%, percentile 67.16%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- asyncapi modelina: \< 1.0.0
- lfprojects modelina: \< 1.0.0
- @asyncapi modelina (Npm): \< 1.0.0

## References

- <https://github.com/asyncapi/modelina/security/advisories/GHSA-4jg2-84c2-pj95>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23619>
- <https://github.com/asyncapi/modelina>

---

Data as of 2026-12-05T05:10:40.180Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
