# GHSA-g7mw-5cq6-fv82: Cross-Site Scripting in wangeditor

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-02T21:20:40.000Z
- Modified: 2021-09-27T21:00:38.000Z
- Weaknesses: CWE-79

## Description

All versions of `wangeditor` are vulnerable to Cross-Site Scripting. The package fails to properly encode output, allowing arbitrary JavaScript to be inserted in links and executed by browsers.


## Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- wangeditor (npm): all versions

## References

- <https://github.com/wangfupeng1988/wangEditor/issues/1945> (web)
- <https://github.com/wangfupeng1988/wangEditor> (web)
- <https://snyk.io/vuln/SNYK-JS-WANGEDITOR-174536> (web)
- <https://www.npmjs.com/advisories/876> (web)

## Sources

- GitHub Advisory Database: [GHSA-g7mw-5cq6-fv82](https://github.com/advisories/GHSA-g7mw-5cq6-fv82), CC-BY-4.0, modified 2021-09-27

---

Page: https://cve.day/GHSA-g7mw-5cq6-fv82 · Whole record: https://cve.day/GHSA-g7mw-5cq6-fv82.json · Rebuilt by cve.day 2026-11-25T22:56:45.393Z
