@asyncapi/generator is vulnerable to Path Traversal
59
CVE Score
Medium
Path Traversal
@asyncapi/generator can map a remote schema base URL to a local folder so $refs are resolved from disk. The resolver builds the local file path by string-replacing the base URL prefix with the mapped folder and reads it without normalizing the result or confirming it stays inside that folder. A malicious AsyncAPI document can use ../ traversal sequences, or a symlink planted under the mapped folder, to make the resolver read files outside the intended directory and pull their contents into the generation process. The fix canonicalizes the resolved path and rejects any reference that escapes the mapped base folder.
Upgrade the @asyncapi/generator library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your project enables the mapBaseUrlToFolder option while generating from untrusted AsyncAPI documents.
1.7.0 - 3.2.2
Fixed in 3.2.3@asyncapi/generator is vulnerable to Path Traversal in versions 1.7.0 - 3.2.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.