7.3 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): Low (L)
- User Interaction (UI): Required (R)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): Low (L)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
code16 Sharp vulnerable to stored XSS via iframe srcdoc Attribute
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.
References
-
https://github.com/code16/sharp/security/advisories/GHSA-qxg3-46rw-79j8 x_refsource_CONFIRM
Affected products
- ==< 9.22.5
Matching in nixpkgs
pkgs.fsharp
Functional CLI language
pkgs.csharp-ls
Roslyn-based LSP language server for C#
pkgs.csharpier
Opinionated code formatter for C#
pkgs.csharprepl
C# REPL with syntax highlighting
pkgs.sharpsat-td
Fast solver for the #SAT model counting problem
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2021-09-05
-
nixos-26.05 -
- nixos-26.05-small 0-unstable-2021-09-05
pkgs.taglib-sharp
Library for reading and writing metadata in media files
pkgs.gtk-sharp-2_0
None
-
nixos-26.05 -
- nixos-26.05-small 2.12.45
pkgs.gtk-sharp-3_0
None
pkgs.gtk-sharp-beans
None
-
nixos-26.05 -
- nixos-26.05-small 2.14.0
pkgs.omnisharp-roslyn
OmniSharp based on roslyn workspaces
pkgs.appindicator-sharp
Bindings for appindicator using gobject-introspection
-
nixos-unstable -
- nixos-unstable-small 0-unstable-2016-01-18
-
nixos-26.05 -
- nixos-26.05-small 0-unstable-2016-01-18
pkgs.haskellPackages.fsharp
some F# operators, high priority pipes
pkgs.dotnetPackages.RestSharp
None
pkgs.dotnetPackages.SharpFont
None
pkgs.dotnetPackages.SharpZipLib
None
pkgs.gimp2Plugins.waveletSharpen
None
pkgs.python313Packages.sharp-aquos-rc
Control Sharp Aquos SmartTVs through the IP interface
pkgs.python314Packages.sharp-aquos-rc
Control Sharp Aquos SmartTVs through the IP interface
pkgs.haskellPackages.tree-sitter-c-sharp
Tree-sitter grammar/parser for C#
pkgs.python313Packages.tree-sitter-c-sharp
C# Grammar for tree-sitter
pkgs.python314Packages.tree-sitter-c-sharp
C# Grammar for tree-sitter
pkgs.vscode-extensions.ionide.ionide-fsharp
Enhanced F# Language Features for Visual Studio Code
pkgs.tree-sitter-grammars.tree-sitter-fsharp
Tree-sitter grammar for fsharp
-
nixos-unstable -
- nixos-unstable-small 0.3.0-unstable-2026-04-16
-
nixos-26.05 -
- nixos-26.05-small 0.3.0-unstable-2026-04-16
pkgs.vscode-extensions.ms-dotnettools.csharp
Official C# support for Visual Studio Code
pkgs.tree-sitter-grammars.tree-sitter-c-sharp
Tree-sitter grammar for c-sharp
pkgs.vimPlugins.nvim-treesitter-parsers.fsharp
Tree-sitter grammar for fsharp
-
nixos-unstable -
- nixos-unstable-small 0.0.0+rev=aefd0c8
-
nixos-26.05 -
- nixos-26.05-small 0.0.0+rev=1c2d935
pkgs.vimPlugins.nvim-treesitter-parsers.c_sharp
Tree-sitter grammar for c_sharp
-
nixos-unstable -
- nixos-unstable-small 0.0.0+rev=v0.23.5
-
nixos-26.05 -
- nixos-26.05-small 0.0.0+rev=8836663
pkgs.vscode-extensions.vytautassurvila.csharp-ls
Visual Studio Code Extension - C# LSP client for csharp-language-server
pkgs.vscode-extensions.csharpier.csharpier-vscode
CSharpier code formatter for Visual Studio Code
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-fsharp
Python bindings for tree-sitter-fsharp
-
nixos-unstable -
- nixos-unstable-small 0.3.0+unstable20260416
-
nixos-26.05 -
- nixos-26.05-small 0.3.0+unstable20260416
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-fsharp
Python bindings for tree-sitter-fsharp
-
nixos-unstable -
- nixos-unstable-small 0.3.0+unstable20260416
-
nixos-26.05 -
- nixos-26.05-small 0.3.0+unstable20260416
pkgs.vscode-extensions.ms-dotnettools.vscodeintellicode-csharp
AI-assisted development features for C# in Visual Studio Code
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-c-sharp
Python bindings for tree-sitter-c-sharp
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-c-sharp
Python bindings for tree-sitter-c-sharp
Package maintainers
-
@kevincox Kevin Cox <kevincox@kevincox.ca>
-
@GaetanLepage Gaetan Lepage <gaetan@glepage.com>
-
@zoriya Zoe Roux <zoe.roux@zoriya.dev>
-
@4evy 4evy <git@evy.pink>
-
@7c6f434c Michael Raskin <7c6f434c@mail.ru>
-
@thoughtpolice Austin Seipp <aseipp@pobox.com>
-
@gepbird Gutyina Gergő <gutyina.gergo.2@gmail.com>
-
@ericdallo Eric Dallo <ercdll1337@gmail.com>
-
@mdarocha Marek Darocha <marek@mdarocha.pl>
-
@corngood David McFarland <corngood@gmail.com>
-
@tesq0 Mikolaj Galkowski <mikolaj.galkowski@gmail.com>
-
@JamieMagee Jamie Magee <jamie.magee@gmail.com>
-
@yzx9 Zexin Yuan <yuan.zx@outlook.com>
-
@stepbrobd Yifei Sun <ysun@hey.com>
-
@mightyiam Shahar "Dawn" Or <mightyiampresence@gmail.com>
-
@adfaure Adrien Faure <adfaure@pm.me>
-
@A-jay98 Ali Jamadi <ali@jamadi.me>
-
@risicle Robert Scott <code@humanleg.org.uk>
-
@aciceri Andrea Ciceri <andrea@ciceri.me>
-
@magnouvean Maxwell Berg <rg0zjsyh@anonaddy.me>
-
@ratsclub Victor Freire <victor@freire.dev.br>