GHSA-xxmq-4vph-956w: Comrak Comrak Vulnerable To Production Of Vulnerability
MODERATEGHSA-xxmq-4vph-956w is a MODERATE (CVSS 5.3) comrak vulnerable to production of vulnerability (General Security Weakness) affecting Comrak libraries in the crates.io ecosystem. The issue involves comrak vulnerable to production of excessive output when parsing markdown (ghsl-2023-048). Remediation is available by upgrading affected packages to version 0.17.0.
GHSA-xxmq-4vph-956w at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix GHSA-xxmq-4vph-956w
To remediate this vulnerability, upgrade all affected Comrak dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade comrak to 0.17.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for comrak
How to Check if You Are Affected
To determine whether your application is affected by GHSA-xxmq-4vph-956w, inspect your project dependencies for Comrak:
inspect dependencies for comrak
Analyze the terminal output to locate any version of Comrak in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Comrak, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-xxmq-4vph-956w Affected Comrak Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
comrak
|
crates.io |
< 0.17.0
|
0.17.0
|
References
Frequently Asked Questions
What is GHSA-xxmq-4vph-956w?
Which Comrak versions are affected?
What version fixes GHSA-xxmq-4vph-956w?
Is comrak affected?
What is the CVSS score of GHSA-xxmq-4vph-956w?
What CWE is associated with GHSA-xxmq-4vph-956w?
How can I check crates.io dependencies for GHSA-xxmq-4vph-956w?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xxmq-4vph-956w",
"modified" : "2023-03-28T14:44:04Z",
"published" : "2023-03-28T14:44:04Z",
"aliases" : [ ],
"summary" : "Comrak vulnerable to production of excessive output when parsing Markdown (GHSL-2023-048)",
"details" : "### Impact\n\ncomrak is vulnerable to the upstream cmark issue, [\"Issue revealed by fuzzer\"](https://github.com/commonmark/cmark/issues/354). A large number of references in a markdown document can trigger an overly large response.\n\n### Patches\n\n0.17.0 contains https://github.com/kivikakk/comrak/commit/70f97f3ea4eae30ffbd1b94c764a3de2f1c41d2a, which limits reference output to a 100Kb maximum.\n\n### Workarounds\n\nn/a\n\n### References\n\n* https://github.com/commonmark/cmark/issues/354",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "comrak"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.17.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kivikakk/comrak/security/advisories/GHSA-xxmq-4vph-956w"
}, {
"type" : "WEB",
"url" : "https://github.com/commonmark/cmark/issues/354"
}, {
"type" : "WEB",
"url" : "https://github.com/kivikakk/comrak/commit/70f97f3ea4eae30ffbd1b94c764a3de2f1c41d2a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kivikakk/comrak"
}, {
"type" : "WEB",
"url" : "https://github.com/kivikakk/comrak/releases/tag/0.17.0"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-28T14:44:04Z",
"nvd_published_at" : null
}
}