🔍 CVE-2026-122234

4.7
CVSS Score
MEDIUM
2026-11-04
2026-11-04 21:18
✅ 완료

🇰🇷 한글 설명

jsondiffpatch 0.7.7 이전 버전에는 델타(delta)의 배열 이동(array-move) 대상 인덱스가 이스케이프되지 않아 크로스 사이트 스크립팅(XSS) 취약점이 존재합니다. 공격자가 formatters.html.format() 또는 formatters.annotated.format()에 전달되는 델타를 조작하면, 출력 렌더링 시 애플리케이션 출처에서 스크립트가 실행될 수 있습니다.

💡 쉬운 설명

여러 데이터의 차이를 보여주는 도구에서 입력값 검사가 부족해, 악의적인 코드가 화면에 삽입될 수 있습니다. 이로 인해 사용자의 웹 브라우저에서 의도하지 않은 스크립트가 실행될 위험이 있습니다.

🇺🇸 원문 (English)

jsondiffpatch before 0.7.7 contains a cross-site scripting vulnerability that allows attackers to inject markup by supplying an unescaped array-move destination index in a delta. Attackers who control a delta passed to formatters.html.format() or formatters.annotated.format() can embed script that executes in the application's origin when output is rendered.

📍 영향받는 시스템

jsondiffpatch 0.7.7 미만 버전을 사용하는 Node.js/JavaScript 애플리케이션

⚔️ 공격 벡터

공격자가 조작된 델타 데이터를 HTML 포맷터로 렌더링되도록 유도하여 악성 스크립트를 삽입

🛡️ 대응 방법

jsondiffpatch를 0.7.7 이상 버전으로 업데이트

🔧 검증 코드

출력된 버전이 0.7.7 미만이면 취약하며, 0.7.7 이상이면 패치가 적용된 상태입니다.

Shell / Script
npm ls jsondiffpatch 2>/dev/null | grep jsondiffpatch

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N