XSS attacks occurs when application is not sanitising inputs properly and rendering the code from user input to browser which could allow an attacker to execute malicious javascript code.
"><img src=x onerror=alert(1);>
Line 173 is not sanitizing device name properly

Cross site scripting can lead to cookie stealing attacks
{
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2023-11-17T21:51:24Z",
"nvd_published_at": "2023-11-17T21:15:07Z",
"severity": "MODERATE"
}