CVE-2025-2745
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA cross-site scripting vulnerability exists in AVEVA PI Web API version 2023 SP1 and prior that, if exploited, could allow an authenticated attacker (with privileges to create/update annotations or upload media files) to persist arbitrary JavaScript code that will be executed by users who were socially engineered to disable content security policy protections while rendering annotation attachments from within a web browser.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA stored cross-site scripting vulnerability in AVEVA PI Web API 2023 SP1 and prior allows authenticated users with annotation or media upload privileges to inject malicious JavaScript into annotation attachments. Execution requires victims to disable content security policy protections, making social engineering a prerequisite for successful exploitation.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify AVEVA PI Web API versionCheck the installed version of AVEVA PI Web API through the API health endpoint (typically at /piwebapi/ping) or review the installed software in Windows Programs and Features. Compare the version number to 2023 SP1 - versions 2023 SP1 and prior are affected.Affected if The installed version is 2023 SP1 or any prior version.
-
Verify annotation or media upload feature is enabledCheck if the PI Web API annotation or media upload endpoints are accessible and enabled in the PI Web API configuration. This can be confirmed by reviewing the PI Web API admin settings or attempting to access annotation-related API endpoints.Affected if Annotation attachments or media upload functionality is enabled and accessible.
-
Confirm user privilege configurationReview the PI Web API user authentication and authorization settings to determine if any authenticated users have annotation or media upload privileges. Check the role assignments in PI Web API admin console or through the security configuration.Affected if Any authenticated user account has annotation write or media upload permissions.
-
Inspect Content-Security-Policy headersInspect the HTTP response headers from PI Web API endpoints using browser developer tools or a command-line tool like curl. Look for the Content-Security-Policy header and evaluate whether it blocks inline scripts.Affected if Content-Security-Policy is missing, weak, or can be disabled by the user, allowing inline script execution.
A user is affected if they run AVEVA PI Web API 2023 SP1 or prior, have annotation/media upload enabled, allow authenticated users upload privileges, and the Content-Security-Policy can be bypassed or disabled by targeted users.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataUpdate AVEVA PI Web API to a patched version and enforce strict Content-Security-Policy headers to prevent the social engineering workaround. Implement input sanitization on all annotation and media file uploads.
- Consultation4.0 h
- Implementation4.0 h
- Testing8.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,928.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-2745 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-2745 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data