DevOps

GitLab XSS CVE-2026-105739 and CVE-2026-108153: Check and Patch

On 16 November 2026, GitLab disclosed CVE-2026-105739 and CVE-2026-108153, two stored cross-site scripting flaws rated CVSS 8.7 in GitLab CE and EE. The first sits in wiki pages and the second in Error Tracking pages. In both, an authenticated user can plant JavaScript that runs in the browser of whoever opens the page, with that viewer’s session and that viewer’s rights.

Original content from computingforgeeks.com - post 191779

The fix ships in 19.5.6, 19.4.8 and 19.3.9, the same release that closes 37 security issues in total. This guide covers how to tell whether your instance is affected, which projects carry the exposure, how to patch Omnibus installs without jumping a minor release by accident, and what to switch off if the upgrade has to wait. Every Omnibus step was tested in November 2026 on Ubuntu 26.04 and on Rocky Linux 10 with SELinux enforcing, upgrading real 19.5.5 and 19.4.7 servers, and no step turns SELinux off.

Affected GitLab versions and the fixed builds

Both flaws reach back several years, so “we upgraded recently” is not an answer. The wiki bug starts at 17.2 and the Error Tracking bug at 16.1, and every release after that is affected until the patch build of its branch. The table lists both CVEs from the GitLab patch release notice with the chart version that carries each fix:

CVEWhere the script landsCVSSAffected fromFixed in
CVE-2026-105739Wiki pages8.7 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N)17.219.3.9, 19.4.8, 19.5.6
CVE-2026-108153Error Tracking pages8.7 (same vector)16.119.3.9, 19.4.8, 19.5.6

Pick the row for the branch you run today. The Helm chart numbers come from GitLab’s chart version mappings, because chart versions do not follow GitLab’s own numbering:

You runPatch toOmnibus debOmnibus rpm (EL10)Helm chart
19.5.0 to 19.5.519.5.6gitlab-ce=19.5.6-ce.0gitlab-ce-19.5.6-ce.0.el1010.5.7
19.4.0 to 19.4.719.4.8gitlab-ce=19.4.8-ce.0gitlab-ce-19.4.8-ce.0.el1010.4.9
19.3.0 to 19.3.819.3.9gitlab-ce=19.3.9-ce.0gitlab-ce-19.3.9-ce.0.el1010.3.11
16.1 to 19.2.xNo patch on your branchUpgrade through the required stops to 19.3.9 or later

Anything older than 19.3 has no backport. GitLab’s upgrade path page lists the required stops: 18.2, 18.5, 18.8 and 18.11 on the 18 line, then 19.2 and 19.5 on the 19 line, with background migrations finished between each hop. If you are still on 17.x, the 17 to 18 upgrade walkthrough covers the first leg. GitLab.com already runs the fix and GitLab Dedicated customers need no action, so this is a self-managed problem only.

Exploitation status as of 17 November 2026

Neither CVE is known to be exploited. GitLab’s notice mentions no attacks, Daily Security Review notes there is no exploitation and no public proof of concept, and SecurityOnline’s write-up lists both as not exploited with no confirmed public proof of concept. We checked the public signals ourselves on 17 November 2026:

  • Neither CVE was listed in the CISA Known Exploited Vulnerabilities catalog when we checked it on 17 November 2026.
  • FIRST’s EPSS model scores both at 0.00284, around the 21st percentile.
  • No public exploit or proof of concept is confirmed for either flaw.

Those numbers describe the internet at large, not your instance, so they should set the order of your queue rather than whether the patch happens. A stored XSS on a private GitLab rarely shows up in public telemetry, because the attacker is already one of your users and the payload never crosses a sensor that reports to anyone.

Low numbers today don’t make this a patch-next-quarter item. The attack needs only a normal account and a victim who opens a page, and the changed scope in the vector means the script acts beyond the wiki itself. An administrator who reads a poisoned runbook hands the attacker an admin session. On an instance with open sign-up, “authenticated” means anyone who can register, which is why closing public user sign-up belongs in the same change window.

The release fixes more than the two XSS bugs. CyberPress and Daily Security Review both count 37 fixes. The one that worries us most for CI-heavy shops is CVE-2026-18241 (CVSS 8.2), a race in pipeline job authorization that can expose protected CI/CD variables. If you keep deploy keys in protected CI/CD variables, the same upgrade covers you there too.

The version check that settles it

Ask the package manager first, because it’s the fastest answer and needs no token. On Debian and Ubuntu, dpkg shows the installed Omnibus build:

dpkg -l gitlab-ce | tail -n 1

On Rocky Linux, AlmaLinux and RHEL the rpm database answers the same question:

rpm -q gitlab-ce

Our Rocky Linux server came back with a 19.4 build one patch short of the fix:

gitlab-ce-19.4.7-ce.0.el10.x86_64

Two more checks read the installed code from GitLab’s side rather than the package database. The version manifest is written by the package itself, and gitlab:env:info boots a fresh Rails process from the installed tree. Neither proves the running Puma has restarted, so the API check further down stays the final word:

head -1 /opt/gitlab/version-manifest.txt
sudo gitlab-rake gitlab:env:info

On the Ubuntu server all three agree on 19.5.5, which is inside the affected range for both CVEs:

Checking the installed GitLab CE version with dpkg, version-manifest.txt and gitlab:env:info on Ubuntu

For a fleet, the REST API is easier to script. The commands below expect an administrator personal access token with the api scope in a shell variable called TOKEN. Read it with read -rs TOKEN so it never lands in your shell history. The responses are piped through jq, which minimal servers often lack (sudo apt install -y jq or sudo dnf install -y jq). Then query the version endpoint:

curl -s -H "PRIVATE-TOKEN: $TOKEN" http://localhost/api/v4/version | jq -c .

Without the token, the same endpoint answers 401 Unauthorized, and /help returns an empty 200 with no version string. That is good hygiene on GitLab’s part, but it also means an outside scanner can’t simply read the version off a box. Your inventory has to come from inside, with a token or a shell:

GitLab /api/v4/version returns the version with a token and 401 Unauthorized without one

Treat any 16.1 or later build below the fixed version of its branch as affected, whether or not anyone uses wikis today. Any project Maintainer can switch a disabled wiki back on, so “nobody uses it” is a description of the past rather than a control. The version answer decides whether you patch, and the next section decides how urgently, because it shows how much of the instance an attacker can actually reach.

Projects that carry the exposure

The vulnerable code only matters where a wiki or an Error Tracking page exists and people read it. Project wikis are on by default for new projects, so most instances have far more of them than anyone remembers creating. This API call lists every project whose wiki is not disabled:

curl -s -H "PRIVATE-TOKEN: $TOKEN" "http://localhost/api/v4/projects?per_page=100&simple=false" | jq -r '.[] | select(.wiki_access_level!="disabled") | [.path_with_namespace,.wiki_access_level] | @tsv'

The API pages at 100 projects, so on a large instance the Rails runner gives a faster total. It counts project wikis that are not disabled and Error Tracking settings that are switched on:

sudo gitlab-rails runner 'puts "wiki_enabled=#{ProjectFeature.where.not(wiki_access_level: 0).count}"; puts "error_tracking_active=#{ErrorTracking::ProjectErrorTrackingSetting.where(enabled: true).count}"'

Our lab had two projects, both with wikis enabled, and Error Tracking switched on for one of them. On a production instance expect the wiki count to sit close to your project count. Group wikis on Premium and Ultimate are a separate feature, and this query doesn’t count them:

Listing GitLab projects with wikis enabled and counting active error tracking settings

A stored XSS leaves its payload in the content, so it is worth looking at who edited wikis recently before and after you patch. Patching stops new rendering of the bad markup but does not delete pages. This runner query prints every wiki page event from the last 30 days with its author and project:

sudo gitlab-rails runner 'Event.where(target_type: "WikiPage::Meta").where("created_at > ?", 30.days.ago).includes(:author, :project).find_each { |e| puts [e.created_at.iso8601, e.action, e.author&.username, e.project&.full_path, e.target&.title].join("\t") }'

Each line is one create or update. Read it for authors who have no business editing that project’s documentation, and for low-privilege accounts touching pages that admins visit often, such as runbooks and onboarding notes:

gitlab-rails runner listing wiki page events from the last 30 days with author and project

A suspicious edit is a reason to open the page source in the wiki’s history view, not in the rendered page. Rendering it on an unpatched server is exactly what the attacker wants.

Error: “404 Error Tracking Setting Not Found”

We hit this when trying to switch GitLab’s integrated error tracking on through /projects/:id/error_tracking/settings. Integrated error tracking sits behind the integrated_error_tracking feature flag, which ships disabled, and GitLab’s error tracking docs describe the integrated backend as a GitLab.com feature. Until a project has a settings record, GET and PATCH answer with this message and PUT with a plain 404 Not Found. We enabled the flag on one lab project to have something to inventory. A 404 on your own instance is therefore good news: that project has no Error Tracking settings at all. Projects wired to Sentry through the same settings still show up in the runner count above.

Patching Omnibus GitLab on Ubuntu and Debian

Pin the exact build. An unpinned upgrade takes the newest package in the repository, and on a 19.3 or 19.4 server that is a minor upgrade you may not have planned. Check what the repository offers for your branch first:

apt-cache madison gitlab-ce | grep -E '19\.(5\.[4-9]|4\.[6-9]|3\.[89])'

Ubuntu 26.04 already had all three fixed builds in the GitLab repository on 17 November, each sitting just above the build it replaces:

 gitlab-ce | 19.5.6-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.5.5-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.5.4-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.4.8-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.4.7-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.4.6-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.3.9-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages
 gitlab-ce | 19.3.8-ce.0 | https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/resolute resolute/main amd64 Packages

Take a full backup before you start. The package’s preinstall hook only dumps the SQL database and skips repositories, uploads and artifacts, as its own output says. With that done, install the pinned 19.5 build (swap in 19.4.8-ce.0 or 19.3.9-ce.0 for the other branches):

sudo apt-get install -y gitlab-ce=19.5.6-ce.0

The run took 398 seconds on a 4 vCPU VM, most of it reconfigure. Omnibus stops services, migrates and restarts on its own unless /etc/gitlab/skip-auto-reconfigure exists, so plan a few minutes of 502s on a single node. GitLab’s notice says these builds carry no new migrations, which keeps the window short:

apt-get upgrading GitLab CE to 19.5.6 on Ubuntu with the automatic preinstall database backup

Enterprise Edition installs follow the same pattern with the gitlab-ee package and an -ee.0 suffix. If you built the server from our GitLab CE install on Ubuntu 26.04, the repository is already configured and nothing else changes.

Error: “ls: cannot open directory ‘/var/opt/gitlab/backups/’: Permission denied”

The backup directory belongs to the git user and is closed to everyone else, so a plain ls from your login fails. That is the right permission for a folder holding a full database dump. Read it with sudo instead:

sudo ls -1 /var/opt/gitlab/backups/

The preinstall dump from our run sat there with the old version in its name, 1794946387_2026_11_17_19.5.5_gitlab_backup.tar. Move it off the host or delete it once the upgrade is verified, because it holds password hashes and encrypted secrets that become readable to anyone who also gets gitlab-secrets.json.

Patching on Rocky Linux and RHEL without jumping a minor

This is the trap on the RHEL family. A plain dnf upgrade gitlab-ce on a 19.4 server does not install 19.4.8. It installs the newest package in the repository. Ask dnf what it would do before letting it do it:

sudo dnf upgrade --assumeno gitlab-ce

On our 19.4.7 server it picked 19.5.6, a minor upgrade with its own upgrade notes, when all we wanted was the security patch:

dnf upgrade on Rocky Linux 10 would move GitLab 19.4.7 to 19.5.6 instead of the 19.4.8 patch

Moving to 19.5.6 is a valid fix too, since 19.5 is itself a required stop. The point is to choose it on purpose, because a minor upgrade can bring deprecations, new background migrations and runner compatibility changes that a patch window was never sized for. To stay on your branch, list the builds the repository carries and install the patch release by its full name.

sudo dnf --showduplicates list gitlab-ce | tail -8

The tail of that list shows 19.4.8 sitting next to the 19.5 builds.

gitlab-ce.x86_64              19.4.7-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.4.8-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.0-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.1-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.3-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.4-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.5-ce.0.el10                 gitlab_gitlab-ce
gitlab-ce.x86_64              19.5.6-ce.0.el10                 gitlab_gitlab-ce 

Name the exact package to stay on 19.4:

sudo dnf install -y gitlab-ce-19.4.8-ce.0.el10

The upgrade finished in 382 seconds. Reconfigure prints a block of Ruby warnings such as already initialized constant SELinuxDistroHelper::REDHAT_RELEASE_FILE. They come from the cookbook being loaded twice and are harmless. The 19.4 and 19.3 builds also pin the SELinux module policy format, so we checked the audit log for denials straight after:

sudo ausearch -m avc -ts today | tail -5
getenforce

No AVC denials, SELinux still enforcing, and the manifest reports 19.4.8. Do not fix a GitLab upgrade problem on this family by running setenforce 0. The Rocky Linux 10 GitLab install keeps the policy enforcing from day one, and an upgrade should not be what changes that:

GitLab pinned to 19.4.8 on Rocky Linux 10 with no SELinux denials and SELinux enforcing

After the patch, dnf check-update gitlab-ce still offers 19.5.6. That is expected, and it means your next unattended dnf upgrade will take the minor jump. Add gitlab-ce to exclude= in the repository file, or use the versionlock plugin, if you want branch upgrades to stay a deliberate act. With exclude= in place, the next pinned patch install needs --disableexcludes=gitlab_gitlab-ce. Ubuntu and Debian servers on 19.4 or 19.3 face the same jump on the next unpinned apt upgrade, and sudo apt-mark hold gitlab-ce stops it there.

Helm chart and Docker installs

We did not run a Kubernetes or Docker install in this lab, so this part follows GitLab’s own documentation rather than our captures. For the Helm chart, export your current values with helm get values gitlab and upgrade to chart 10.5.7, 10.4.9 or 10.3.11 with -f pointing at that file. GitLab’s chart upgrade guide warns against --reuse-values, because it keeps the old chart’s defaults.

For the Omnibus container, change the image tag to the fixed build for your branch and recreate the container on the same volumes. Our GitLab in Docker Compose guide keeps the tag in one place, which makes this a one-line change. The October CVE-2026-110264 patch guide walks through the container and chart steps in more detail. Container installs took the CI/CD regex RCE fixed on 12 October the same way, so a team that handled that earlier critical release already has the routine. Pin the full tag rather than a floating one such as latest, so a later pull cannot move you to a branch you did not test. The verification below applies to both install types, because the version endpoint and the wiki behaviour are the same inside a pod or a container.

Proof the patch took

A package that installed is not the same as an application that restarted on new code. Check the package, the running version and the service state together:

dpkg -l gitlab-ce | tail -n 1
head -1 /opt/gitlab/version-manifest.txt
sudo gitlab-ctl status | head -20
curl -s -H "PRIVATE-TOKEN: $TOKEN" http://localhost/api/v4/version | jq -c .

On Rocky Linux and RHEL, swap the first line for rpm -q gitlab-ce. The package line, the manifest and the API should all name the same build. Ours reported 19.5.6 with revision 07ea32efb8b, and every service had the same 100 seconds of uptime, which shows reconfigure restarted the whole stack rather than leaving an old Puma worker serving pages:

GitLab reports 19.5.6 after the patch and every service is in run state

Finish with GitLab’s own consistency check. It took 79 seconds on our two-project lab and ended with Checking GitLab App ... Finished, with no failed items:

sudo gitlab-rake gitlab:check SANITIZE=true

The wiki page we created before the upgrade was still there with its content intact, so the patch does not touch existing pages. That cuts both ways: anything malicious planted before the upgrade is also still there, which is why the wiki event review above matters.

Containment when the upgrade has to wait

If a change freeze or a pending stop on the upgrade path blocks the patch, shrink the attack surface instead. GitLab 19.5 has no instance-wide switch for custom HTML in wikis. We dumped every application setting whose name mentions HTML, wiki, markup or sanitizing, and only rendering toggles came back:

  • kroki_enabled and plantuml_enabled control diagram rendering and were already false.
  • wiki_asciidoc_allow_uri_includes controls AsciiDoc includes and was already false.
  • wiki_page_max_content_bytes caps page size at 5242880 bytes and does nothing for markup.

None of them sanitizes wiki markup, so turning knobs at the instance level buys nothing. Containment therefore happens per project, and that is less work than it sounds because the inventory above already tells you which projects have a wiki or Error Tracking switched on.

Disable the wiki on projects that don’t need one, and switch Error Tracking off where it’s active. Project 1 here is the handbook project from the inventory, and project 2 is the one with Error Tracking:

curl -s -X PUT -H "PRIVATE-TOKEN: $TOKEN" http://localhost/api/v4/projects/1 --data "wiki_access_level=disabled" | jq -r .wiki_access_level
curl -s -X PATCH -H "PRIVATE-TOKEN: $TOKEN" http://localhost/api/v4/projects/2/error_tracking/settings --data "active=false" | jq -c .

Both calls returned the new state, disabled for the wiki and "active":false for Error Tracking:

Disabling a GitLab project wiki and turning off error tracking through the API as an interim mitigation

Confirm the wiki is really closed by asking for its pages. The control holds if the API refuses:

curl -s -H "PRIVATE-TOKEN: $TOKEN" http://localhost/api/v4/projects/1/wikis -w ' http=%{http_code}\n'

Even with an admin token the request is refused.

{"message":"403 Forbidden"} http=403

Disabling is not deleting. When we set wiki_access_level=enabled again after the test, the API listed the same Runbook page, so teams lose access for the freeze but not their documentation. For wikis that must stay open, follow SecurityOnline’s advice and review who can edit them: drop casual contributors to Reporter until the patch lands. GitLab’s permissions table gives wiki edit rights to Planner, Developer, Maintainer and Owner, and not to Reporter or Guest, so Planner is not a safe parking role here.

Audit checklist for CVE-2026-105739 and CVE-2026-108153

Run through these on every self-managed GitLab instance you own, and keep the output with your change record. Each item is a condition that should hold once you’re done:

  1. The installed package and /api/v4/version both report 19.5.6, 19.4.8, 19.3.9 or later.
  2. Every GitLab node, including Sidekiq and Gitaly nodes in a multi-node setup, runs the same fixed build.
  3. The package manager would not jump a minor release on the next unattended upgrade without someone choosing it.
  4. Wiki page events from the last 30 days have been reviewed, and every editor is someone who belongs on that project.
  5. Projects that never use their wiki have it disabled, and Error Tracking is active only where someone reads it.
  6. Public sign-up is closed, or new accounts need admin approval, so “authenticated attacker” does not mean “anyone”.
  7. SELinux still reports Enforcing on RHEL family hosts and the audit log shows no new GitLab denials.
  8. The preinstall backup tarball has been moved off the host or removed.

If item 1 fails because you’re stuck below 19.3, the items after it are your interim controls, not a substitute for the upgrade. Plan the route through the required stops this week, since the same release also closes the CI/CD variable race and 34 other issues. Our GitLab CVE-2026-97229 check and patch guide explains why a 19.2 or 19.3 server should treat its last patch build as a waypoint on that route rather than the place to stop.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch GL.iNet Security Notice: Check Your Router for Malware and Update Networking GL.iNet Security Notice: Check Your Router for Malware and Update Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Security Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch APT CVE-2026-109518: Check and Patch Debian and Ubuntu Debian APT CVE-2026-109518: Check and Patch Debian and Ubuntu

Leave a Comment

Press ESC to close