fix: replace 100+ unsafe innerHTML assignments with textContent/escap…#6536
Conversation
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
@karthik-dev56 eslint and jest failing |
b83533e to
c4f64b7
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
c4f64b7 to
76758f5
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
matting... run on these files itself and recommit |
76758f5 to
50f5c9e
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Hey @Ashutoshx7 Now all test cases has been passed |
|
Hey @walterbender please have a look when u have time |
|
hy yes i am testing it out |
|
everything is fine |
50f5c9e to
e76906f
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
e76906f to
2b1a328
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Hey @Ashutoshx7 everything is perfect now! |
2b1a328 to
c9cc63e
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
@Ashutoshx7 yep its done now! |
c9cc63e to
5f987c1
Compare
5f987c1 to
0292701
Compare
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
… warnings in widgets
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests: |
|
✅ All Jest tests passed! This PR is ready to merge. |
|
✅ All Jest tests passed! This PR is ready to merge. |
|
OMG!!! fixing this issue was crazy dude |
|
Hey @walterbender please have a look when u have time |
|
A lot to review and test. So far everything checks out, but I am uncertain about several places where you changed:
I don't know if those checks were intended to look for undefined as well. To be safe, maybe we leave those alone? |
|
hey @walterbender I'll revert those specific changes back to != null just to be completely safe and avoid any unintended side effects. Give me a few minutes |
|
✅ All Jest tests passed! This PR is ready to merge. |
1 similar comment
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Hey @walterbender i have fixed please have a look |
1893ee3 to
b76a683
Compare
|
✅ All Jest tests passed! This PR is ready to merge. |
|
Hey @walterbender I've force-pushed to restore the branch to its clean state, but how would you prefer we handle the != null checks without triggering hundreds of ESLint eqeqeq CI failures |
|
In the future, please keep unrelated changes in a separate PR. This should have been at least 3 different PRs. |
|
@walterbender yeah sure i will keep in mind....I enjoyed solving this |

Systematically remediate XSS vulnerabilities caused by unsanitized innerHTML
usage across 18 widget files. Dynamic data from project files (.tb), user
inputs, and block values are now escaped via escapeHTML() or assigned using
textContent where no HTML structure is needed.
Files remediated:
Test updates:
All 4192 tests passing, zero regressions introduced."