Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/%40ckeditor/ckeditor5-markdown-gfm@31.1.0 |
| Type | npm |
| Namespace | @ckeditor |
| Name | ckeditor5-markdown-gfm |
| Version | 31.1.0 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 35.0.1 |
| Latest_non_vulnerable_version | 35.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 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
|
| fixed_packages |
|
| 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_score | 3.1 |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/%2540ckeditor/ckeditor5-markdown-gfm@31.1.0 |