# GHSA-c53x-wwx2-pg96: Cross-Site Scripting in @berslucas/liljs

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T17:03:58.000Z
- Modified: 2021-09-28T17:27:43.000Z
- Weaknesses: CWE-79

## 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.

(As written by GitHub Advisory Database.)

## Affected

- @berslucas/liljs (npm): before 1.0.2

## References

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

## Sources

- GitHub Advisory Database: [GHSA-c53x-wwx2-pg96](https://github.com/advisories/GHSA-c53x-wwx2-pg96), CC-BY-4.0, modified 2021-09-28

---

Page: https://cve.day/GHSA-c53x-wwx2-pg96 · Whole record: https://cve.day/GHSA-c53x-wwx2-pg96.json · Rebuilt by cve.day 2026-11-25T22:56:45.030Z
