tomaioo opened a new pull request, #1536:
URL: https://github.com/apache/couchdb-fauxton/pull/1536

   ## Summary
   
   fix(security): 2 improvements across 2 files
   
   ## Problem
   
   **Severity**: `High` | **File**: `app/addons/components/actions.js:L47`
   
   In `app/addons/components/actions.js`, the `deleteDatabase` function 
constructs a notification message by directly concatenating `dbId` into a 
string without sanitization. While `escape: false` is set on the notification, 
if `dbId` contains malicious HTML/JS, it could lead to XSS. The comment even 
warns 'beware of possible XSS when the message changes'.
   
   ## Solution
   
   Sanitize the `dbId` before including it in the notification message, or 
ensure the notification rendering system escapes HTML. Consider using a 
template with proper escaping or a sanitization library.
   
   ## Changes
   
   - `app/addons/components/actions.js` (modified)
   - `app/addons/cors/helpers.js` (modified)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to