Submit #609704: chinese-poetry <=v0.1 Inefficient Regular Expression Complexityinfo

Titlechinese-poetry <=v0.1 Inefficient Regular Expression Complexity
DescriptionI have identified a Regular Expression Denial of Service (ReDoS) vulnerability in the rank/server.js file. The regular expression used to strip <script> and <style> tags can be exploited with a maliciously crafted string, causing the Node.js event loop to block and leading to a Denial of Service.
Source⚠️ https://github.com/chinese-poetry/chinese-poetry/issues/396
User
 DayShift (UID 80963)
Submission07/05/2025 10:16 (12 months ago)
Moderation07/13/2025 09:50 (8 days later)
StatusAccepted
VulDB entry316277 [chinese-poetry 0.1 rank/server.js redos]
Points18

Do you know our Splunk app?

Download it now for free!