Skip to content
High 7.3

Cross-Site Scripting (XSS) in code16/sharp

CVE-2026-61823 First seen on SecPulse

Summary

Cross-site scripting in code16/sharp (CVE-2026-61823). Confidential information can be exposed externally. Exploitable via srcdoc. Mitigation: upgrade to 9.22.5 or later.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-61823 has been found in code16/sharp.
Attackers can target a specific entry point like srcdoc over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.3/10.
What to do: upgrade code16/sharp to 9.22.5 or later.
If unsure, ask your IT team or search "code16/sharp CVE-2026-61823" on the vendor's site.

CVE-2026-61823 (code16/sharp) — CWE-79 / CVSS v3 7.3
Attack vector: remote (network-reachable)
Attack surface: srcdoc
Patched: 9.22.5 — apply immediately
Workaround: Users who cannot upgrade immediately can manually sanitize all content of editor fields to strip srcdoc attributes.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Cross-site scripting (XSS) (CWE-79) exists in code16/sharp. Attackers reach the vulnerable code path via srcdoc.

Affected scope

Check the vendor advisory for the affected versions of code16/sharp. Attack surface: srcdoc.

Severity

Severity: High (CVSS 7.3/10). Confidential information can be exposed externally.

How to fix

Update to 9.22.5.

Workaround

Workaround: Users who cannot upgrade immediately can manually sanitize all content of editor fields to strip srcdoc attributes.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'code16/sharp' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'code16/sharp' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で code16/sharp を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply temporary workaroundmitigate
    Users who cannot upgrade immediately can manually sanitize all content of editor fields to strip `srcdoc` attributes.

    パッチが適用されるまでの応急処置として、Users who cannot upgrade immediately can manually sanitize all content of editor fields to strip srcdoc attributes. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patchpatch
    Upgrade code16/sharp to 9.22.5

    ステージング環境で 9.22.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
composercode16/sharp
< 9.22.5→ 9.22.5
Original description The description as published by the source.

code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. Versions before 9.22.5 contain a stored cross-site scripting vulnerability in the rich-text editor because the HTML sanitizer permits the srcdoc attribute on iframe elements. Although markup inside srcdoc is HTML-encoded during sanitization, browsers decode attribute entities before interpreting the iframe document, allowing an authenticated user with permission to edit an Editor field to store executable JavaScript that runs when another user views the content. Successful exploitation can result in session hijacking, unauthorized actions, account takeover, privilege escalation, or disclosure of administrative data. Version 9.22.5 patches the vulnerability by removing srcdoc from the permitted iframe attributes. As a workaround, applications that cannot upgrade should manually sanitize all Editor field content and remove every iframe srcdoc attribute before storing or rendering it.

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details