Regular Expression Denial of Service in string package #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
⚠️
dependabot-gitlabhas detected security vulnerability forstringin path:/, manifest_file:/package.jsonbut was unable to update it! ⚠️GHSA-g36h-6r4f-3mqp,CVE-2017-16116Description
Affected versions of
stringare vulnerable to regular expression denial of service when specifically crafted untrusted user input is passed into theunderscoreorunescapeHTMLmethods.Recommendation
There is currently no direct patch for this vulnerability.
Currently, the best solution is to avoid passing user input to the
underscoreandunescapeHTMLmethods.Alternatively, a user provided patch is available in Pull Request #217, however this patch has not been tested, nor has it been merged by the package author.
References