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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 65% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-21T18:41:59.000Z
- Modified: 2026-09-10T03:49:27.247Z
- Also known as: GHSA-4jg2-84c2-pj95
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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."

(As written by CVE List.)

## Affected

- asyncapi modelina: < 1.0.0
- @asyncapi/modelina (npm): before 1.0.0
- lfprojects modelina: before 1.0.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/asyncapi/modelina/security/advisories/GHSA-4jg2-84c2-pj95> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23619> (advisory)
- <https://github.com/asyncapi/modelina> (package)

## Sources

- CVE List: [CVE-2023-23619](https://www.cve.org/CVERecord?id=CVE-2023-23619), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-4jg2-84c2-pj95](https://github.com/advisories/GHSA-4jg2-84c2-pj95), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-23619](https://nvd.nist.gov/vuln/detail/CVE-2023-23619), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-23619 · Whole record: https://cve.day/CVE-2023-23619.json · Rebuilt by cve.day 2026-11-25T22:58:21.731Z
