@ibm-cloud/openapi-ruleset is vulnerable to Regular Expression Denial of Service (ReDoS)
53
CVE Score
Medium
Regular Expression Denial of Service (ReDoS)
@ibm-cloud/openapi-ruleset validates OpenAPI documents against IBM Cloud API conventions using Spectral rules. The ibm-schema-casing-convention and ibm-parameter-casing-convention rules check schema names and header parameter names with regular expressions that use overlapping, ambiguous quantifiers. A crafted schema name or header parameter name triggers catastrophic backtracking, causing the validation process to exhaust CPU and hang. The fix rewrites both patterns so they match in linear time while keeping the same validation logic.
Upgrade the @ibm-cloud/openapi-ruleset library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run the validator against OpenAPI documents from untrusted sources.
1.14.1 - 1.33.10
Fixed in 1.33.11@ibm-cloud/openapi-ruleset is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.14.1 - 1.33.10.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.