Vulnerabilities in pkg:pypi/semantic-kernel
PACKAGECVE-2026-26030 is a CRITICAL (CVSS 9.9) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Semantic kernel libraries in the PyPI ecosystem. The issue involves microsoft semantic kernel inmemoryvectorstore filter functionality vulnerable to remote code execution. Remediation is available by upgrading affected packages to version 1.39.4.
pkg:pypi/semantic-kernel
Vulnerability advisories affecting package pkg:pypi/semantic-kernel. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xjw9-4gw8-4rqx | CVE-2026-26030 | CRITICAL | Microsoft Semantic Kernel InMemoryVectorStore filter functionality vulnerable to remote code execution |
| GHSA-2ww3-72rp-wpp4 | CVE-2026-25592 | CRITICAL | Semantic Kernel has Arbitrary File Write via AI Agent Function Calling in .NET SDK |
CVE-2026-26030 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-26030
To remediate this vulnerability, upgrade all affected Semantic kernel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install semantic-kernel>=1.39.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show semantic-kernel
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-26030, inspect your installed packages using pip:
pip show semantic-kernel
Analyze the terminal output to locate any version of Semantic kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.39.4), your application is affected.
Note: The pip show semantic-kernel command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Semantic kernel, 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-2026-26030 Affected Semantic kernel Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
semantic-kernel
|
PyPI |
< 1.39.4
|
1.39.4
|
References
Frequently Asked Questions
What is CVE-2026-26030?
Which Semantic kernel versions are affected?
What version fixes CVE-2026-26030?
Is semantic-kernel affected?
What is the CVSS score of CVE-2026-26030?
What CWE is associated with CVE-2026-26030?
How can I check PyPI dependencies for CVE-2026-26030?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xjw9-4gw8-4rqx",
"modified" : "2026-06-08T23:19:39Z",
"published" : "2026-02-19T19:34:14Z",
"aliases" : [ "CVE-2026-26030" ],
"summary" : "Microsoft Semantic Kernel InMemoryVectorStore filter functionality vulnerable to remote code execution",
"details" : "### Impact:\nAn RCE vulnerability has been identified in Microsoft Semantic Kernel Python SDK, specifically within the `InMemoryVectorStore` filter functionality.\n\n### Patches:\nThe problem has been fixed in [python-1.39.4](https://github.com/microsoft/semantic-kernel/releases/tag/python-1.39.4). Users should upgrade this version or higher.\n\n### Workarounds:\nAvoid using `InMemoryVectorStore` for production scenarios.\n\n### References:\n[Release python-1.39.4 · microsoft/semantic-kernel · GitHub](https://github.com/microsoft/semantic-kernel/releases/tag/python-1.39.4)\n[PR to block use of dangerous attribute names that must not be accessed in filter expressions](https://github.com/microsoft/semantic-kernel/pull/13505)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "semantic-kernel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.39.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/security/advisories/GHSA-xjw9-4gw8-4rqx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-26030"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/pull/13505"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/semantic-kernel"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/semantic-kernel/releases/tag/python-1.39.4"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/semantic-kernel/PYSEC-2026-163.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-19T19:34:14Z",
"nvd_published_at" : "2026-02-19T17:24:50Z"
}
}