Skip to content

Commit 321b475

Browse files
authored
docs: update SECURITY.md to clarify build-time trust boundary
1 parent 01abe08 commit 321b475

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎SECURITY.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ The following defines some team policies around what does and does not constitut
99
- Prototype pollution is itself a DoS vulnerability.
1010
- An attacker could pollute any symbol into the wrong type and cause an error, nothing we can do will prevent that.
1111
- Therefore we don't care about any DoS vulnerability which relies on prototype pollution as a precondition.
12-
- We trust the user's source code.
12+
- We trust the user's source code and build-time inputs.
1313
- "A malicious repository can execute untrusted code" is not a viable attack vector.
1414
- A malicious repository could always rebind `node_modules/.bin/ng` to do something malicious, nothing we do can prevent that.
1515
- We assume it is always unsafe to run an untrusted repository outside of a sandbox.
16+
- Build-time configuration (`angular.json`, `routesFile`, environment variables) and values returned by developer-authored build-time functions (such as `getPrerenderParams()`) are considered trusted inputs. Passing unvalidated, untrusted data from an external source (e.g., a CMS or database) into build-time route generation or build configuration is an application-level input validation defect, not a vulnerability in Angular.
1617
- DoS attacks which break only the attacker's client are not security issues.
1718
- Exception: DoS attacks which waste server resources significantly beyond the cost of the attacker's request may be security issues.
1819
- Memory leaks are considered general bugs, not DoS vulnerabilities.

0 commit comments

Comments
 (0)