Skip to content

fix(noi-ask): Resolve XSS vulnerability in YuanbaoAsk#399

Open
Mirza-Samad-Ahmed-Baig wants to merge 1 commit intolencx:mainfrom
Mirza-Samad-Ahmed-Baig:fix/xss-vulnerability
Open

fix(noi-ask): Resolve XSS vulnerability in YuanbaoAsk#399
Mirza-Samad-Ahmed-Baig wants to merge 1 commit intolencx:mainfrom
Mirza-Samad-Ahmed-Baig:fix/xss-vulnerability

Conversation

@Mirza-Samad-Ahmed-Baig
Copy link
Copy Markdown

@Mirza-Samad-Ahmed-Baig Mirza-Samad-Ahmed-Baig commented Sep 14, 2025

Impact: This is a DOM-based Cross-Site Scripting (XSS) vulnerability. If a malicious message is passed to the YuanbaoAsk.sync method, it could be executed in the user's browser, potentially leading to session hijacking or other malicious activities.

Solution: This pull request resolves the vulnerability by replacing the use of innerHTML with textContent. This ensures that any input is treated as plain text and not as executable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant