LiveActive security incident?Get immediate response
CVE Record

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

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.

LowCVSS 3.5Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

CVE-2021-4272 is a low-severity cross-site scripting issue in studygolang. A user-controlled contentHtml value in static/js/topics.js could affect page content integrity when a victim interacts with malicious content. The public sources name an upstream patch but do not identify affected version ranges.

Executive priority

Treat this as low priority unless studygolang is internet-facing and accepts content from untrusted authenticated users. The main business risk is limited page-content tampering, not data theft or service outage, based on the provided CVSS vector.

Technical view

The issue is classified as CWE-707 and maps to XSS through manipulation of contentHtml in static/js/topics.js. CVSS 3.1 is 3.5: network reachable, low attack complexity, privileges required, user interaction required, unchanged scope, low integrity impact, and no confidentiality or availability impact.

Likely exposure

Exposure is limited to organizations running studygolang code that predates commit 0fb30f9640bd5fa0cae58922eac6c00bb1a94391. The source bundle does not provide affected version numbers, package coordinates, or CPEs, so inventory must be commit-based rather than version-based.

Exploitation context

The source says the attack can be initiated remotely, but the CVSS vector requires low privileges and user interaction. CISA KEV status is false in the bundle, and no cited source reports active exploitation.

Researcher notes

The evidence is sparse: affected versions and the exact vulnerable code path are not described beyond static/js/topics.js and contentHtml. The named commit is the only concrete fix reference. Do not infer broader product impact or exploitation beyond the cited records.

Mitigation direction

  • Apply upstream commit 0fb30f9640bd5fa0cae58922eac6c00bb1a94391 or a vendor release containing it.
  • Inventory studygolang deployments and identify code branches older than the named patch commit.
  • If patch status is unclear, check upstream project guidance before adding local workarounds.
  • Prioritize normal maintenance remediation unless the application is exposed to untrusted authenticated users.

Validation and detection

  • Confirm static/js/topics.js contains the upstream patch changes from the referenced commit.
  • Map deployed studygolang instances to exact commits, not only version labels.
  • Review whether untrusted authenticated users can submit content reaching contentHtml handling.
  • Check security monitoring for unusual content changes, without assuming confirmed exploitation.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-707: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-4272 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
3.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
3.5CVSS 3.1LowCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N2.11.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

3.5Low
CVSS 3.1 vector shape for CVE-2021-4272Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
unspecifiedstudygolangn/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-707 · source CWE mapping

Improper Neutralization

Improper Neutralization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.