Improper Control of Generation of Code ('Code Injection') in @asyncapi/modelina
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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."
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| asyncapi | modelina | before 1.0.0 | 1.0.0 | Patch available | CNA |
| — | @asyncapi/modelina (npm) | before 1.0.0 | 1.0.0 | Patch available | GHSA-4jg2-84c2-pj95 |
- modelina Vendorasyncapi Affected before 1.0.0 Fixed in 1.0.0 Patch available CNA
- @asyncapi/modelina (npm) Vendor— Affected before 1.0.0 Fixed in 1.0.0 Patch available GHSA-4jg2-84c2-pj95
Remediation
- Fix · CNA modelina (asyncapi) Fixed in 1.0.0
- Fix · GHSA-4jg2-84c2-pj95 @asyncapi/modelina (npm) Fixed in 1.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-23619
- 2026-10-03 Alias added: GHSA-4jg2-84c2-pj95
References
More asyncapi vulnerabilities
- TI-2021-15569 Code injection issue for java-spring-cloud-stream-template CVSS 3.1HIGH 8.7
Sources
- CVE-2023-23619 · CVE Program
- CVE-2023-23619 · NVD
- FIRST EPSS
- GHSA-4jg2-84c2-pj95 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences