🔍 CVE-2026-50556

6.1
CVSS Score
MEDIUM
2026-06-22
2026-07-15 01:16
✅ 완료

🇰🇷 한글 설명

Angular의 @angular/platform-server에서 사용하는 domino 라이브러리가 <noscript> 요소 내의 콘텐츠를 직렬화할 때 닫는 태그를 제대로 이스케이프하지 않는 XSS 취약점이 발견되었습니다. 서버 사이드 렌더링(SSR) 과정에서 동적 텍스트에 포함된 </noscript> 태그가 그대로 출력되어 브라우저에서 악성 스크립트가 실행될 수 있습니다.

💡 쉬운 설명

웹사이트를 만드는 도구인 Angular에서 특정 태그를 처리할 때 보안 규칙을 놓치는 실수가 있었습니다. 이로 인해 공격자가 웹사이트에 몰래 악성 코드를 심어 사용자의 정보를 훔칠 수 있습니다.

🇺🇸 원문 (English)

Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25, a Cross-Site Scripting (XSS) vulnerability exists in @angular/platform-server's DOM emulation dependency (domino) when serializing the content of <noscript> elements. When rendering dynamic text content inside a <noscript> element via template bindings (such as {{ value }} or [textContent]), the template engine expects the browser to render the content safely. Under Server-Side Rendering (SSR), domino is configured with scripting enabled, meaning <noscript> is treated as a raw-text element. However, domino's serializer completely omitted <noscript> from the list of raw-text elements requiring closing-tag escaping during DOM serialization. As a result, any occurrence of </noscript> in the bound dynamic text was never escaped under any circumstances. The unescaped closing tag was serialized directly into the output HTML (e.g. <noscript></noscript><script>alert(1)</script></noscript>). When parsed by a browser, it closes the <noscript> block early, allowing the injected <script> block to execute in the user's browser context, causing same-origin Cross-Site Scripting (XSS). This vulnerability is fixed in 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25.

📍 영향받는 시스템

Angular versions prior to 22.0.0-rc.2, 21.2.16, 20.3.24, and 19.2.25

⚔️ 공격 벡터

SSR 환경에서 <noscript> 태그 내부에 </noscript> 문자열을 포함한 동적 데이터를 주입하여 HTML 구조를 깨뜨리고 스크립트를 실행함

🛡️ 대응 방법

Angular를 22.0.0-rc.2, 21.2.16, 20.3.24 또는 19.2.25 이상의 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 취약점이 해결된 버전(22.0.0-rc.2, 21.2.16, 20.3.24, 19.2.25 이상)인지 확인하십시오.

Shell / Script
npm list @angular/platform-server

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server