{"api_version":"1","generated_at":"2026-07-23T11:01:26+00:00","cve":"CVE-2022-23474","urls":{"html":"https://cve.report/CVE-2022-23474","api":"https://cve.report/api/cve/CVE-2022-23474.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23474","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474"},"summary":{"title":"CVE-2022-23474","description":"Editor.js is a block-style editor with clean JSON output. Versions prior to 2.26.0 are vulnerable to Code Injection via pasted input. The processHTML method passes pasted input into wrapper’s innerHTML. This issue is patched in version 2.26.0.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-15 19:15:00","updated_at":"2022-12-20 01:56:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://github.com/codex-team/editor.js/pull/2100","name":"https://github.com/codex-team/editor.js/pull/2100","refsource":"MISC","tags":[],"title":"fix(tools-api): pasteConfig.tags now supports a sanitize config by robonetphy · Pull Request #2100 · codex-team/editor.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","name":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","refsource":"MISC","tags":[],"title":"GHSL-2022-028: Copy/paste cross-site scripting (XSS) in codex-team | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23474","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23474","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23474","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"codex","cpe5":"editor.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-23474","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Editor.js is a block-style editor with clean JSON output. Versions prior to 2.26.0 are vulnerable to Code Injection via pasted input. The processHTML method passes pasted input into wrapper’s innerHTML. This issue is patched in version 2.26.0."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94: Improper Control of Generation of Code ('Code Injection')","cweId":"CWE-94"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"codex-team","product":{"product_data":[{"product_name":"editor.js","version":{"version_data":[{"version_value":"2.26.0","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/","refsource":"MISC","name":"https://securitylab.github.com/advisories/GHSL-2022-028_codex-team_editor_js/"},{"url":"https://github.com/codex-team/editor.js/pull/2100","refsource":"MISC","name":"https://github.com/codex-team/editor.js/pull/2100"}]},"source":{"advisory":"GHSA-6mvj-2569-3mcm","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-15 19:15:00","lastModifiedDate":"2022-12-20 01:56:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:codex:editor.js:*:*:*:*:*:node.js:*:*","versionEndExcluding":"2.26.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23474","Ordinal":"226325","Title":"CVE-2022-23474","CVE":"CVE-2022-23474","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23474","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}