CVE-2022-25849
PHP vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-25849 affects the joyqi/hyper-down package versions 0.0.0 and above. This vulnerability was discovered on July 20, 2022, and publicly disclosed on October 25, 2022. The issue is a Cross-site Scripting (XSS) vulnerability in the markdown parsing module that fails to properly filter href attributes (Snyk).

Technical details

The vulnerability exists because the markdown parsing module does not adequately filter the href attribute. An attacker can exploit this by crafting a malicious markdown link in the format [!](javascript:alert%28%2Fxss%2F%29). When this text is processed through the HyperDownParser module using the makeHtml() function, it generates a clickable link that can execute arbitrary JavaScript code (Snyk).

Impact

When exploited, this vulnerability allows attackers to execute malicious JavaScript code in the context of the user's browser. This can lead to cookie theft, session hijacking, exposure of sensitive information, access to privileged services and functionality, and potential malware delivery (Snyk).

Exploitability

The vulnerability requires user interaction to be exploited, as the XSS payload is triggered when a user clicks on the malicious link. The EPSS (Exploit Prediction Scoring System) indicates a 0.06% probability (30th percentile) of exploitation in the wild (Snyk).

Mitigation and workarounds

Currently, there is no fixed version available for the joyqi/hyper-down package. As general mitigation strategies, it is recommended to sanitize data input in HTTP requests before reflecting it back, validate and filter all data, escape special characters, and implement a Content Security Policy (CSP) (Snyk).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44741HIGH8.8
  • PHP logoPHP
  • pimcore/admin-ui-classic-bundle
NoYesAug 12, 2026
CVE-2026-47233MEDIUM6.5
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-47132MEDIUM5.4
  • PHP logoPHP
  • thorsten/phpmyfaq
NoYesAug 12, 2026
CVE-2026-47234MEDIUM4.4
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-49262LOW3
  • PHP logoPHP
  • aimeos/pagible
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management