Skip to content
CVE PROGRAM SOURCE RECORD5.1 Medium

CVE-2026-129141

paicoding 1.0.0 through 1.0.3 Stored XSS via JSON-LD Profile Description

Read JSON ↗CVE.org ↗

Description

paicoding 1.0.0 through 1.0.3 contains a stored cross-site scripting vulnerability because SeoInjectService embeds user profile text without escaping in an inline JSON-LD script element. Authenticated attackers can add a closing script tag followed by HTML to their profile, executing scripts for visitors of their profile page and stealing the non-HttpOnly f-session cookie.

Remediation guide

Fix CVE-2026-129141 in Paicoding

Guide updated .

Escape literal less-than characters in serialized JSON-LD before the header inserts it into an HTML script element. Apply the patch to the exact source below, then rebuild and stage the application.

Applicability

Item Tested scope
Source Paicoding 1.0.0–1.0.3; tested commit 903adce70309d340f7eec51ec3c80cfe3c8326c1.
Changed paths paicoding-ui/src/main/resources/templates/components/layout/header.html
Prerequisites Linux x86-64, curl, tar, Git and sha256sum. The commands obtain Amazon Corretto Java 8 and Maven 3.9.9; do not use a newer JDK for this pinned project.

This patch was created and tested by Casco.

Download and apply

Use a new disposable directory. These commands verify downloads before applying or executing them. Do not apply the patch blindly to another revision.

File SHA-256
paicoding-jsonld-context.patch fb2d1e0b3788714919a5be38db04830547748f4fce62460d1f22ca0d2617fa5f
JsonLdRegression.java 646073346542cecf51c9cc3bda52bfbb4a4daf35fd513e49ba4bd9e07373e36d
pom.xml d90518e79791847c088498746e7d8035d64dcadffcc354807a3763df28ac0e94
set -eu
mkdir cve-2026-129141-verification
cd cve-2026-129141-verification
curl -fL 'https://casco.com/cve/artifacts/CVE-2026-129141/fb2d1e0b3788714919a5be38db04830547748f4fce62460d1f22ca0d2617fa5f/paicoding-jsonld-context.patch' -o 'paicoding-jsonld-context.patch'
printf '%s  %s\n' 'fb2d1e0b3788714919a5be38db04830547748f4fce62460d1f22ca0d2617fa5f' 'paicoding-jsonld-context.patch' | sha256sum -c -
curl -fL 'https://casco.com/cve/artifacts/CVE-2026-129141/646073346542cecf51c9cc3bda52bfbb4a4daf35fd513e49ba4bd9e07373e36d/JsonLdRegression.java.txt' -o 'JsonLdRegression.java'
printf '%s  %s\n' '646073346542cecf51c9cc3bda52bfbb4a4daf35fd513e49ba4bd9e07373e36d' 'JsonLdRegression.java' | sha256sum -c -
curl -fL 'https://casco.com/cve/artifacts/CVE-2026-129141/d90518e79791847c088498746e7d8035d64dcadffcc354807a3763df28ac0e94/pom.xml.txt' -o 'pom.xml'
printf '%s  %s\n' 'd90518e79791847c088498746e7d8035d64dcadffcc354807a3763df28ac0e94' 'pom.xml' | sha256sum -c -
curl -fL 'https://codeload.github.com/itwanger/paicoding/tar.gz/903adce70309d340f7eec51ec3c80cfe3c8326c1' -o source.tar.gz
printf '%s  %s\n' '6e4e2f191c61b10eb106f07d165c0e386752710cd73fede8fc235c0a73ca44ab' 'source.tar.gz' | sha256sum -c -
mkdir source
tar -xzf source.tar.gz -C source --strip-components=1
curl -fL 'https://corretto.aws/downloads/resources/8.514.01.1/amazon-corretto-8.514.01.1-linux-x64.tar.gz' -o jdk.tar.gz
printf '%s  %s\n' '7bc25b00ce9372505168791a56dd6b9452294297502c6ed50137fe2e0700e542' 'jdk.tar.gz' | sha256sum -c -
mkdir jdk
tar -xzf jdk.tar.gz -C jdk --strip-components=1
curl -fL 'https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.tar.gz' -o maven.tar.gz
printf '%s  %s\n' '7a9cdf674fc1703d6382f5f330b3d110ea1b512b51f1652846d9e4e8a588d766' 'maven.tar.gz' | sha256sum -c -
mkdir maven
tar -xzf maven.tar.gz -C maven --strip-components=1
JAVA_HOME="$PWD/jdk" ./maven/bin/mvn -B -q dependency:build-classpath -Dmdep.outputFile=classpath.txt
./jdk/bin/javac -encoding UTF-8 -source 8 -target 8 -cp "$(cat classpath.txt)" JsonLdRegression.java
set +e
./jdk/bin/java -cp ".:$(cat classpath.txt)" JsonLdRegression source/paicoding-ui/src/main/resources/templates/components/layout/header.html > baseline.log
baseline_status=$?
set -e
test "$baseline_status" -eq 1
grep -F 'RESULT total=12 passed=4 failed=8' baseline.log
git -C source apply --check ../paicoding-jsonld-context.patch
git -C source apply ../paicoding-jsonld-context.patch
./jdk/bin/java -cp ".:$(cat classpath.txt)" JsonLdRegression source/paicoding-ui/src/main/resources/templates/components/layout/header.html > patched.log
grep -F 'RESULT total=12 passed=12 failed=0' patched.log

Validation

Fresh public-download verification used Java 1.8.0_514, Thymeleaf 3.0.15.RELEASE, Spring Expression 5.3.21 and Jackson Databind 2.13.3. The actual header fragment failed 8 of 12 benign cases before the patch and passed 12/12 afterward. JSON values survived round-trip decoding; rendered script data contained no literal less-than characters. Patch applicability and application passed.

Deployment and rollback

The escape is applied to serialized JSON, preserving the decoded profile text. Check profile rendering, JSON-LD parsing and the application's normal build in staging before rollout. Full Spring/database, browser and production tests were not performed. Keep the previous source, built package and backups. To reverse this exact patch after checking applicability:

git -C source apply -R ../paicoding-jsonld-context.patch

A rollback restores the earlier code; verify the staging result before any production rollout.

Evidence

Primary advisory or CVE record. Structured CVE record. Validation was repeated from anonymous public source/artifact downloads on November 23, 2026; The scoped results above do not establish full application or production acceptance.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

itwanger paicoding

Default version status: unaffected

  • 1.0.0 to ≤ 1.0.3affected
pkg:github/itwanger/paicoding

References