@angular-devkit/build-angular is vulnerable to OS Command Injection
44
CVE Score
Medium
OS Command Injection
The ssr-dev-server builder in @angular-devkit/build-angular starts the SSR server by joining the command and its arguments into a single string and running it with a shell enabled. The server output path taken from the project angular.json configuration is inserted into that string with manual quoting, so a crafted output path value containing shell command substitution or metacharacters is evaluated by the shell when the dev server starts. This allows arbitrary operating system commands to run with the privileges of the developer executing the build. The fix passes the command and arguments separately to the process spawn call and removes the manual quoting and the shell option.
Upgrade the @angular-devkit/build-angular library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run the ssr-dev-server builder on a project whose output path configuration comes from an untrusted source.
17.0.0 - 22.0.4
Fixed in 22.0.5@angular-devkit/build-angular is vulnerable to OS Command Injection in versions 17.0.0 - 22.0.4.
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.