VYPR
Unrated severityNVD Advisory· Published Jun 16, 2022· Updated Aug 3, 2024

CVE-2022-31298

CVE-2022-31298

Description

A cross-site scripting vulnerability in the ads comment section of Haraj v3.7 allows attackers to execute arbitrary web scripts or HTML via a crafted POST request.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Haraj v3.7 is vulnerable to stored XSS in the ads comment section via a crafted POST request, allowing arbitrary script execution.

Vulnerability

The ads comment section of Haraj v3.7 does not properly sanitize user-supplied input submitted via POST request. An attacker can inject arbitrary JavaScript or HTML into a comment, leading to stored cross-site scripting (XSS). The vulnerable component is present in all installations of Haraj v3.7.

Exploitation

An unauthenticated attacker can craft a POST request to the comment endpoint containing a malicious payload (e.g., ``). The payload is stored on the server and executed in the browsers of any user who views the affected ad comment. No special privileges or user interaction beyond viewing the page are required.

Impact

Successful exploitation allows the attacker to execute arbitrary JavaScript in the context of the victim's session. This can lead to session hijacking, defacement of the page, theft of sensitive data (e.g., cookies, CSRF tokens), or further actions such as redirecting users to malicious sites.

Mitigation

The available references do not explicitly mention a patch for this vulnerability. However, Haraj v3.8 (described in reference [2]) includes various updates and may contain a fix, though this is not confirmed. Users are advised to contact the vendor or upgrade to the latest version if available. No official workaround is documented.

AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.