{"id":"CVE-2021-43853","aliases":["CVE-2021-43853","GHSA-5q7q-qqw2-hjq7"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in AjaxNetProfessional","summary":"Ajax.NET Professional (AjaxPro) is an AJAX framework available for Microsoft ASP.NET. Affected versions of this package are vulnerable to JavaScript object injection which may result in cross site scripting when leveraged by a malicious user. The affected core relates to JavaScript object creation when parsing json input. Releases before version 21.12.22.1 are affected. A workaround exists that replaces one of the core JavaScript files embedded in the library. See the GHSA-5q7q-qqw2-hjq7 for workaround details.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Ajax.NET Professional (AjaxPro) is an AJAX framework available for Microsoft ASP.NET. Affected versions of this package are vulnerable to JavaScript object injection which may result in cross site scripting when leveraged by a malicious user. The affected core relates to JavaScript object creation when parsing json input. Releases before version 21.12.22.1 are affected. A workaround exists that replaces one of the core JavaScript files embedded in the library. See the GHSA-5q7q-qqw2-hjq7 for workaround details.","source":"cvelist"},{"lang":"en","text":"### 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\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue on this GitHub repository","format":"markdown","source":"ghsa"},{"lang":"es","text":"Ajax.NET Professional (AjaxPro) es un framework AJAX disponible para Microsoft ASP.NET. Las versiones afectadas de este paquete son vulnerables a una inyección de objetos de JavaScript, lo que puede resultar en una vulnerabilidad de tipo cross site scripting cuando es aprovechada por un usuario malicioso. El núcleo afectado está relacionado con la creación de objetos JavaScript cuando es analizada la entrada json. Las versiones anteriores a la 21.12.22.1 están afectadas. Se presenta una solución que reemplaza uno de los archivos JavaScript del núcleo insertado en la biblioteca. Consulte el documento GHSA-5q7q-qqw2-hjq7 para conocer los detalles de la solución","source":"nvd"}],"published":"2021-12-22T20:55:09.000Z","modified":"2026-07-08T06:29:14.612Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79","CWE-502"],"affected":[{"ranges":[{"version":"< 21.12.22.1","status":"affected"}],"vendor":"michaelschwarz","product":"Ajax.NET-Professional","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.12.22.1"}],"ecosystem":"NuGet","package":"AjaxNetProfessional","purl":"pkg:nuget/AjaxNetProfessional","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"21.12.22.1"}],"vendor":"ajax.net_professional_project","product":"ajax.net_professional","cpe":"cpe:2.3:a:ajax.net_professional_project:ajax.net_professional:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/michaelschwarz/Ajax.NET-Professional/security/advisories/GHSA-5q7q-qqw2-hjq7","tags":["mitigation","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/michaelschwarz/Ajax.NET-Professional/commit/c89e39b9679fcb8ab6644fe21cc7e652cb615e2b","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/michaelschwarz/Ajax.NET-Professional/releases/tag/v21.12.22.1","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43853","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/michaelschwarz/Ajax.NET-Professional","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43853","url":"https://www.cve.org/CVERecord?id=CVE-2021-43853","licence":"CVE Terms of Use","modified":"2024-08-04T04:10:16.314Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5q7q-qqw2-hjq7","url":"https://github.com/advisories/GHSA-5q7q-qqw2-hjq7","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:14.612Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43853","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43853","licence":"Public domain","modified":"2026-06-17T04:11:34.533Z"}],"updatedAt":"2026-11-25T22:24:36.360Z","epss":{"score":0.00851,"percentile":0.59306,"date":"2026-12-01T12:00:22.000Z"}}