spark
spark copied to clipboard
[SPARK-54624][UI][3.5] Ensure user name in historypage get escaped
What changes were proposed in this pull request?
This PR backports #53364 to branch-3.5.
This PR aims to escape user name displayed in historypage.
Why are the changes needed?
Similar to the issue resolved in #52851, user name should also get escaped because arbitrary user name can be set through the env var SPARK_USER.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
User name displayed in historypage is escaped even if the name is like <script>alert('XSS')</script>
Was this patch authored or co-authored using generative AI tooling?
No.
~The failed test seems to be related to #53332, not this change.~