CVE-2025-7579 Details
Description
A vulnerability was found in chinese-poetry 0.1. It has been rated as problematic. This issue affects some unknown processing of the file rank/server.js. The manipulation leads to inefficient regular expression complexity. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in Chinese-Poetry version 0.1. The issue arises in the file rank/server.js, where a regular expression used to remove <script> and <style> tags can be exploited with a carefully crafted input. This exploitation causes catastrophic backtracking, leading to excessive CPU usage and blocking the Node.js event loop, which results in a denial-of-service condition. The vulnerability can be triggered remotely.
To address this vulnerability, the regular expression should be modified to prevent catastrophic backtracking. The proposed fix involves using a negative lookahead to make the pattern more specific, ensuring that the regex engine does not match past the intended closing tags. The updated regex can be applied in place of the original one.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 14, 2025CISA-ADP
Assessed Jul 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/chinese-poetry/chinese-poetry/issues/396 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/chinese-poetry/chinese-poetry/issues/396#issue-3204562392 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/?ctiid.316277 | [email protected] | AdvisoryExploitTechnical Description |
| https://vuldb.com/?id.316277 | [email protected] | AdvisoryExploitTechnical Description |
| https://vuldb.com/?submit.609704 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chinese-poetry | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Jul 14, 2025 | New CVE Received | [email protected] |
Volerion