# GHSA-C53X-WWX2-PG96: Cross-Site Scripting in @berslucas/liljs

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2020-09-03
- Modified: 2021-09-28

## Affected versions

- @berslucas/liljs (npm): fixed in 1.0.2

## Description

Versions of  `@berslucas/liljs` prior to 1.0.2 are vulnerable to Cross-Site Scripting (XSS). The package uses the unsafe `innerHTML` function without sanitizing input, which may allow attackers to execute arbitrary JavaScript on the victim's browser.


## Recommendation

Upgrade to version 1.0.2 or later.

## References

- https://github.com/bersLucas/liljs/pull/7
- https://github.com/bersLucas/liljs/commit/779c0dcd8aba434a1c94db7d1d2d990a629f9a6c
- https://github.com/bersLucas/liljs
- https://github.com/bersLucas/liljs/releases/tag/1.0.2
- https://snyk.io/vuln/SNYK-JS-BERSLUCASLILJS-450217
- https://www.npmjs.com/advisories/1016

Page: https://cve.now/GHSA-C53X-WWX2-PG96

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
