Lookup for vulnerable packages by Package URL.

Purlpkg:npm/%40ckeditor/ckeditor5-markdown-gfm@31.0.0
Typenpm
Namespace@ckeditor
Nameckeditor5-markdown-gfm
Version31.0.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version35.0.1
Latest_non_vulnerable_version35.0.1
Affected_by_vulnerabilities
0
url VCID-wpgs-aj5v-zbbw
vulnerability_id VCID-wpgs-aj5v-zbbw
summary
CKEditor5 cross-site scripting vulnerability caused by the editor instance destroying process
### Affected packages
@ckeditor/ckeditor5-markdown-gfm
@ckeditor/ckeditor5-html-support
@ckeditor/ckeditor5-html-embed

### Impact
A cross-site scripting vulnerability has been discovered affecting three optional CKEditor 5's packages. The vulnerability allowed to trigger a JavaScript code after fulfilling special conditions:

a) Using one of the affected packages. In case of `ckeditor5-html-support` and `ckeditor5-html-embed`, additionally, it was required to use a configuration that allows unsafe markup inside the editor,
b) Initializing the editor on an element and using an element other than `<textarea>` as a base,
c) Destroying the editor instance.

The root cause of the issue was a mechanism responsible for updating the source element with the markup coming from the CKEditor 5 data pipeline after destroying the editor. 

This vulnerability might affect a small percent of integrators that depend on dynamic editor initialization/destroy and use [Markdown](https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html), [General HTML Support](https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html) or [HTML embed](https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html) features.

### Patches
The problem has been recognized and patched. The fix will be available in version 35.0.1.

### For more information
Email us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.
references
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-31175
reference_id
reference_type
scores
0
value 0.00746
scoring_system epss
scoring_elements 0.73078
published_at 2026-04-11T12:55:00Z
1
value 0.00746
scoring_system epss
scoring_elements 0.73134
published_at 2026-04-24T12:55:00Z
2
value 0.00746
scoring_system epss
scoring_elements 0.73097
published_at 2026-04-21T12:55:00Z
3
value 0.00746
scoring_system epss
scoring_elements 0.73103
published_at 2026-04-18T12:55:00Z
4
value 0.00746
scoring_system epss
scoring_elements 0.73094
published_at 2026-04-16T12:55:00Z
5
value 0.00746
scoring_system epss
scoring_elements 0.73051
published_at 2026-04-13T12:55:00Z
6
value 0.00746
scoring_system epss
scoring_elements 0.73007
published_at 2026-04-02T12:55:00Z
7
value 0.00746
scoring_system epss
scoring_elements 0.73057
published_at 2026-04-12T12:55:00Z
8
value 0.00746
scoring_system epss
scoring_elements 0.73028
published_at 2026-04-04T12:55:00Z
9
value 0.00746
scoring_system epss
scoring_elements 0.73003
published_at 2026-04-07T12:55:00Z
10
value 0.00746
scoring_system epss
scoring_elements 0.7304
published_at 2026-04-08T12:55:00Z
11
value 0.00746
scoring_system epss
scoring_elements 0.73053
published_at 2026-04-09T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-31175
1
reference_url https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:02:28Z/
url https://ckeditor.com/docs/ckeditor5/latest/features/general-html-support.html
2
reference_url https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:02:28Z/
url https://ckeditor.com/docs/ckeditor5/latest/features/html-embed.html
3
reference_url https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:02:28Z/
url https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html
4
reference_url https://github.com/ckeditor/ckeditor5
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/ckeditor/ckeditor5
5
reference_url https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:02:28Z/
url https://github.com/ckeditor/ckeditor5/security/advisories/GHSA-42wq-rch8-6f6j
6
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-31175
reference_id
reference_type
scores
0
value 5.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-31175
7
reference_url https://github.com/advisories/GHSA-42wq-rch8-6f6j
reference_id GHSA-42wq-rch8-6f6j
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-42wq-rch8-6f6j
fixed_packages
0
url pkg:npm/%40ckeditor/ckeditor5-markdown-gfm@35.0.1
purl pkg:npm/%40ckeditor/ckeditor5-markdown-gfm@35.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540ckeditor/ckeditor5-markdown-gfm@35.0.1
aliases CVE-2022-31175, GHSA-42wq-rch8-6f6j
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-wpgs-aj5v-zbbw
Fixing_vulnerabilities
Risk_score3.1
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:npm/%2540ckeditor/ckeditor5-markdown-gfm@31.0.0