/

CVE-2026-129151

Severity:

HIGH RISK

(7.5)

Missing Authorization (CWE-862) in SurveyKing Lookup

CVE-2026-129151

Deferred

Vulnerability type

Category:

Missing Authorization

CWE:

CWE-862

Impact:

Unauthorized disclosure of survey responses

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

SurveyKing's result lookup can expose survey responses because the anonymous survey view reveals lookup configuration, including its password, and a password check may be skipped when no answer is provided. An unauthenticated person with a public survey link may be able to match responses and retrieve complete answers, including hidden fields.

Affected context

The issue occurs in SurveyKing's result lookup flow when a survey is publicly accessible. The anonymous view exposes lookup configuration, and the lookup path may proceed without enforcing the password check if no answer is sent. A MyBatis LIKE condition that accepts a wildcard may then match responses, which can be retrieved through loadProject using an answerId.

Exploit preconditions

  • Attack surface: Public survey view and result lookup functionality
  • Required access: No authentication is described as necessary; an attacker needs a public survey link
  • Trigger point: Lookup processing when no answer is supplied, followed by response retrieval
  • Why exploitation is possible: The password check may be skipped, and a wildcard in the LIKE condition may match multiple responses

Why this happens

The root cause is missing authorization enforcement in the result lookup flow, mapping to CWE-862: Missing Authorization. The application exposes lookup configuration and permits response retrieval without consistently verifying that the requester is authorized. Accepting wildcard input in a database matching condition can broaden the results returned, compounding the authorization failure.

Potential impact

  • An unauthenticated requester may be able to read survey responses
  • Responses may include fields that are intended to be hidden
  • Exposure of respondent data could create privacy or confidentiality harms

General mitigation guidance

Defensive patterns focus on enforcing authorization at every response retrieval boundary, regardless of whether optional answer data is provided.

Common controls include:

  • Requiring a validated authorization secret or equivalent check before returning any response
  • Applying authorization checks server-side for each requested answer or project
  • Avoiding exposure of passwords and other sensitive lookup configuration in anonymous views
  • Treating user-controlled search input as data, and constraining wildcard behavior in database queries
  • Returning only fields the requester is explicitly authorized to see
  • Limiting application and database privileges to what the lookup feature requires

How teams detect issues like this

Review lookup and response-loading code for authorization checks that depend on optional request fields or occur only in the user interface.

Useful approaches include:

  • Static analysis and code review for response access paths lacking server-side authorization
  • Tests covering anonymous requests, omitted answers, invalid credentials, and attempts to retrieve hidden fields
  • Review of MyBatis query construction for user-controlled LIKE patterns and overly broad result sets
  • Policy checks that prevent sensitive configuration from being serialized into public responses
  • Monitoring for unusual anonymous lookup volume or repeated response retrieval requests

Sources

SourceLink
github.comgithub.com/javahuang/SurveyKing/blob/5de0d05b682ee34244c0b6c07be24eb6358cd8a5/server/rdbms/src/main/java/cn/surveyking/server/domain/mapper/ProjectViewMapper.java#L30-L33
github.comgithub.com/javahuang/SurveyKing/blob/5de0d05b682ee34244c0b6c07be24eb6358cd8a5/server/rdbms/src/main/java/cn/surveyking/server/impl/SurveyServiceImpl.java#L1085-L1096
github.comgithub.com/javahuang/SurveyKing/blob/5de0d05b682ee34244c0b6c07be24eb6358cd8a5/server/rdbms/src/main/java/cn/surveyking/server/impl/SurveyServiceImpl.java#L937-L959
github.comgithub.com/javahuang/SurveyKing/issues/92
vul.yulun.ac.cnvul.yulun.ac.cn/20261107/surveyking/
vulncheck.comvulncheck.com/advisories/surveyking-1.13.2-unauthenticated-survey-response-disclosure-via-result-lookup

Frequently asked

questions

The description indicates that an unauthenticated attacker with a public survey link may use the public lookup flow to access responses.

Authentication is not described as necessary. The lookup password check may be skipped when no answer is sent, which is central to the reported behavior.

Enforce server-side authorization before every response lookup and retrieval, including requests that omit optional answer data.

Keep sensitive configuration out of anonymous views, constrain wildcard searches, and test authorization across missing, invalid, and unexpected request inputs.

Find out what's already
exploitable in your codebase.