SIGN IN SIGN UP

fix(@angular/build): assert that asset input paths are within workspace root

Ensure that asset patterns defined as objects with an 'input' property are validated to be within the workspace root.

- In '@angular/build', introduce a shared 'isSubDirectory' utility and apply it to both 'normalizeAssetPatterns' and 'resolveAssets'.
- In '@angular-devkit/build-angular', apply similar validation during 'normalizeAssetPatterns'.
- Add and update integration and E2E tests to prevent regressions from absolute and relative path traversal attempts.
A
Alan Agius committed
163a03264b3d9633b1398d1d43b1384bcbd09ed4
Parent: 1d3ac8e
Committed by Alan Agius <alan.agius4@gmail.com> on 5/21/2026, 1:57:43 PM