# CVE-2021-4272: studygolang topics.js cross site scripting

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2022-12-21T00:00:00.000Z
- Modified: 2026-06-17T04:19:23.867Z
- Also known as: GHSA-gw62-c7w4-x449
- Weaknesses: CWE-79, CWE-707
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability classified as problematic has been found in studygolang. This affects an unknown part of the file static/js/topics.js. The manipulation of the argument contentHtml leads to cross site scripting. It is possible to initiate the attack remotely. The name of the patch is 0fb30f9640bd5fa0cae58922eac6c00bb1a94391. It is recommended to apply a patch to fix this issue. The identifier VDB-216477 was assigned to this vulnerability.

(As written by CVE List.)

## Affected

- unspecified studygolang: n/a
- github.com/studygolang/studygolang (Go): up to 0.1.0
- studygolang studygolang: no versions given

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/studygolang/studygolang/commit/0fb30f9640bd5fa0cae58922eac6c00bb1a94391> (patch, third-party-advisory, web)
- <https://vuldb.com/?id.216477> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4272> (advisory)
- <https://github.com/studygolang/studygolang> (package)

## Sources

- CVE List: [CVE-2021-4272](https://www.cve.org/CVERecord?id=CVE-2021-4272), CVE Terms of Use, modified 2025-04-14
- GitHub Advisory Database: [GHSA-gw62-c7w4-x449](https://github.com/advisories/GHSA-gw62-c7w4-x449), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-4272](https://nvd.nist.gov/vuln/detail/CVE-2021-4272), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4272 · Whole record: https://cve.day/CVE-2021-4272.json · Rebuilt by cve.day 2026-11-25T22:58:07.977Z
