CVE-2023-49289: AjaxNetProfessional Cross-Site Scripting Vulnerability
MODERATECVE-2023-49289 is a MODERATE (CVSS 6.3) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting AjaxNetProfessional libraries in the NuGet ecosystem. The issue involves ajax pro cross-site scripting. Remediation is available by upgrading affected packages to version 21.12.22.1.
CVE-2023-49289 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2023-49289
To remediate this vulnerability, upgrade all affected AjaxNetProfessional dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade AjaxNetProfessional to 21.12.22.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for AjaxNetProfessional
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-49289, inspect your project dependencies for AjaxNetProfessional:
inspect dependencies for AjaxNetProfessional
Analyze the terminal output to locate any version of AjaxNetProfessional in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 21.12.22.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In AjaxNetProfessional, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-49289 Affected AjaxNetProfessional Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
AjaxNetProfessional
|
NuGet |
< 21.12.22.1
|
21.12.22.1
|
References
Frequently Asked Questions
What is CVE-2023-49289?
Which AjaxNetProfessional versions are affected?
What version fixes CVE-2023-49289?
Is AjaxNetProfessional affected?
What is the CVSS score of CVE-2023-49289?
What CWE is associated with CVE-2023-49289?
How can I check NuGet dependencies for CVE-2023-49289?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8v6j-gc74-fmpp",
"modified" : "2023-12-05T00:52:58Z",
"published" : "2023-12-05T00:06:04Z",
"aliases" : [ "CVE-2023-49289" ],
"summary" : "Ajax Pro Cross-site Scripting",
"details" : "### Overview\n\nAffected versions of this package are vulnerable to Deserialization of Untrusted Data due to the possibility of deserialization of arbitrary JavaScript objects.\n\n### Description\n\nCross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.\n\nXSS effects vary in range from petty nuisance to significant security risk, depending on the sensitivity of the data handled by the vulnerable site and the nature of any security mitigation implemented by the site's owner network.\n\n### Releases\n\nReleases before version 21.12.22.1 are affected. Please be careful to download any binary DLL from other web sites, especially we found NuGet packages not owned by us that contain vulnerable versions.\n\n### Workarounds\n\nA workaround exists that replaces one of the core JavaScript files embedded in the library. Using a XML configuration allows to replace the default JavaScript code to be replaced with the version on GitHub.\n\n```xml\n<configuration>\n\t<configSections>\n\t\t<sectionGroup name=\"ajaxNet\">\n\t\t\t<section name=\"ajaxSettings\" type=\"AjaxPro.AjaxSettingsSectionHandler,AjaxPro.2\" requirePermission=\"false\" restartOnExternalChanges=\"true\"/>\n\t\t</sectionGroup>\n\t</configSections>\n\t<ajaxNet>\n\t\t<ajaxSettings>\n\t\t\t<coreScript>~/ajaxpro-core-fixed.js</coreScript>\n\t\t</ajaxSettings>\n\t</ajaxNet>\n</configuration>\n```\n\nCopy the file core.js from the main project folder to your web server root folder and rename that ajaxpro-core-fixed.js.\n\nClients need to refresh the web page to download the changed JavaScript code.\n\n### References\n\nCommit fixing the issue: c89e39b9679fcb8ab6644fe21cc7e652cb615e2b\n\nNote: the official Ajax.NET Professional (AjaxPro) NuGet package is available here: https://www.nuget.org/packages/AjaxNetProfessional/\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "AjaxNetProfessional"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "21.12.22.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/michaelschwarz/Ajax.NET-Professional/security/advisories/GHSA-8v6j-gc74-fmpp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49289"
}, {
"type" : "WEB",
"url" : "https://github.com/michaelschwarz/Ajax.NET-Professional/commit/c89e39b9679fcb8ab6644fe21cc7e652cb615e2b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/michaelschwarz/Ajax.NET-Professional"
}, {
"type" : "WEB",
"url" : "https://www.nuget.org/packages/AjaxNetProfessional"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-05T00:06:04Z",
"nvd_published_at" : "2023-12-05T00:15:08Z"
}
}