Commit 104a237
committed
refactor(ses): mitigate textdecoder hardening failure in node.js
Add a mitigation for `TextDecoder` instances in Node.js to prevent `harden` from failing when encountering the `kLatin1FastPath` symbol property. This involves ensuring that the property is not treated as a target for freezing or is handled via a proxy/accessor that allows the internal Node.js state to remain mutable.
Affected files: lockdown-shim.js
Signed-off-by: toanmap <174589430+maptoan@users.noreply.github.com>1 parent ba2254d commit 104a237
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
0 commit comments