hey-jian-wei/jianying-mcp
jiangying mcp
f312beac6091jianying-mcp0.1.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 44 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 file reached by the taint walk exceeded the 524288 byte size limit and were read and parsed only up to it
- 1 file exceeded the 524288 byte size limit and were parsed only up to it
- 1 source file could be read only in part
Top risks in plain words
- CRITICAL11 production dependencies have known vulnerabilities (worst: critical).
- HIGHTools
add_video_segment,export_draftread or write any file path by design: an agent steered by prompt injection can use them that way. - HIGHTool
add_audio_segmentrequests any address by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
add_video_segment,export_draftcan read or write any file path. Mount a single project folder, read-only where you can. - Limit where it can connect
add_audio_segmentcan request any address. Block access to internal hosts and cloud metadata endpoints. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
add_audio_segment,add_video_segment,export_draft, switch them off. - Update its vulnerable packages
Use
anyio4.14.2 or later,certifi2026.10.18 or later,idna3.15 or later,mcp1.30.0 or later and 7 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 20 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
add_audio_effect, add_audio_fade, add_audio_keyframe, add_audio_segment, add_text_animation, add_text_segment and 11 moreNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files17 tools · add_audio_effect, add_audio_fade, add_audio_keyframe +14
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (20: 20 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
add_audio_segmenttool 添加音频片段到指定轨道,须注意 target_start_end和 source_start_end 的使用规则Filesoutside textRequests any address
添加音频片段到指定轨道,须注意 target_start_end和 source_start_end 的使用规则
Args:
track_id: 轨道ID,通过create_track获得
material: 音频文件路径,支持本地文件路径或URL
target_start_end: 片段在轨道上的目标时间范围,格式如 "0s-4.2s",表示在轨道上从0s开始,持续4.2s,target_start_end参数描述的是轨道上的时间范围,同一轨道中不可有重复时间段,即0s-4.2s和4s-5s,第一段素材最后0.2s与第二段素材重叠了,只能是0s-4.2s和4.ss-5s
source_start_end: 从源音频文件中截取的时间范围,格式如 "1s-4.2s",表示从源音频的1s开始截取,到4.2s结束(可选),source_start_end参数描述的是素材本身取的时长,默认取全部时长,一般情况下不设置,除非用户说明,若素材时长为5s,用户需要取其中1s-5s的内容,才配置
speed: 播放速度,默认为1.0。此项与source_timerange同时指定时,将覆盖target_timerange中的时长(可选)
volume: 音量,默认为1.0
change_pitch: 是否跟随变速改变音调,默认为Falseadd_video_segmenttool 添加视频片段到指定轨道,须注意target_timerange和source_timerange的使用规则Filesoutside textReads/writes files
添加视频片段到指定轨道,须注意target_timerange和source_timerange的使用规则
Args:
track_id: 轨道ID,通过create_track获得
material: 视频文件路径,包括文本文件路径或者url
target_start_end: 片段在轨道上的目标时间范围,格式如 "1s-4.2s",表示在轨道上从1s开始,到4.2s结束,target_start_end参数描述的是轨道上的时间范围,同一轨道中不可有重复时间段,即0s-4.2s和4s-5s,第一段素材最后0.2s与第二段素材重叠了,只能是0s-4.2s和4.ss-5s
source_start_end: 从源视频文件中截取的时间范围,格式如 "1s-4.2s",表示从源视频的1s开始截取,到4.2s结束(可选),source_start_end参数描述的是素材本身取的时长,默认取全部时长,一般情况下不设置,除非用户说明,若素材时长为5s,用户需要取其中1s-5s的内容,才配置
speed: (`float`, optional): 播放速度, 默认为1.0,此项与`source_timerange`同时指定时, 将覆盖`target_timerange`中的时长
volume: (`float`, optional): 音量, 默认为1.0
change_pitch: (`bool`, optional): 是否跟随变速改变音调, 默认为否
clip_settings: (`Dict`, optional)图像调节设置字典(可选),哪些需要修改就填哪些字段
默认 clip_settings = {
"alpha": 1.0, # 图像不透明度, 0-1. 默认为1.0.
"flip_horizontal": False, # 是否水平翻转. 默认为False.
"flip_vertical": False, # 是否垂直翻转. 默认为False.
"rotation": 0.0, # 顺时针旋转的**角度**, 可正可负. 默认为0.0.
"scale_x": 1.0, # 水平缩放比例. 默认为1.0.
"scale_y": 1.0, # 垂直缩放比例. 默认为1.0.
"transform_x": 0.0, # 水平位移, 单位为半个画布宽. 默认为0.0.
"transform_y": 0.0 # 垂直位移, 单位为半个画布高. 默认为0.0.
}
Returns:
ToolResponse: 包含操作结果的响应,格式为 {"success": bool, "message": str, "data": dict, "video_segment_id": str}
Examples:
# 基本用法
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s")
# 指定源时间范围
add_video_segment("track_id", "/path/to/video.mp4", "0s-3s", source_timerange="10s-3s")
# 设置播放速度和音量
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s", speed=2.0, volume=0.8)
# 设置图像调节
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s",
clip_settings={"alpha": 0.8, "scale_x": 1.2, "rotation": 45})export_drafttool 导出草稿为剪映项目,导出到本地剪映的草稿路径下Filesoutside textReads/writes files
导出草稿为剪映项目,导出到本地剪映的草稿路径下
Args:
draft_id: 草稿ID,必须是已存在的草稿
jianying_draft_path: 导出路径add_audio_effecttool 为音频片段添加特效Filesoutside text
为音频片段添加特效
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
effect_type: 特效类型,支持以下类型:
- "AudioSceneEffectType": 场景音效(如雨声、风声等)
- "ToneEffectType": 音调特效(如机器人、电音等)
- "SpeechToSongType": 语音转歌声特效(如Lofi、流行等)
effect_name: 特效名称,如 "雨声", "机器人", "Lofi", "电音", "回声" 等,可以使用find_effects_by_type工具,资源类型选择AudioSceneEffectType、ToneEffectType、SpeechToSongType,从而获取特效类型有哪些
params: 特效参数列表(可选),参数范围0-100,具体参数数量和含义取决于特效类型,一般不做修改add_audio_fadetool 为音频片段添加淡入淡出效果Filesoutside text
为音频片段添加淡入淡出效果
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
in_duration: 音频淡入时长,格式如 "1s", "500ms", "0.5s"
out_duration: 音频淡出时长,格式如 "1s", "500ms", "0.5s"add_audio_keyframetool 为音频片段添加音量关键帧Filesoutside text
为音频片段添加音量关键帧
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
time_offset: 关键帧的时间偏移量,格式如 "0s", "1.5s", "500ms"
volume: 音量在time_offset处的值,范围通常0.0-1.0,也可以大于1.0实现增益效果add_text_animationtool 为文本片段添加动画效果Filesoutside text
为文本片段添加动画效果
Args:
text_segment_id: 文本片段ID,通过add_text_segment获得
animation_type: 动画类型,支持以下类型:
- "TextIntro": 入场动画
- "TextOutro": 出场动画
- "TextLoopAnim": 循环动画
animation_name: 动画名称,如 "复古打字机", "弹簧", "色差故障", "淡入", "淡出" 等,可以使用find_effects_by_type工具,资源类型选择TextIntro、TextOutro、TextLoopAnim,从而获取动画类型有哪些
duration: 动画持续时间(可选),格式如 "1s", "500ms"add_text_segmenttool 添加文本片段到指定轨道Filesoutside text
添加文本片段到指定轨道
Args:
track_id: 轨道ID,通过create_track获得
text: 文本内容
target_start_end: 片段在轨道上的目标时间范围,格式如 "1s-4.2s",表示在轨道上从1s开始,到4.2s结束
font: 字体类型名称(可选)
style: 字体样式字典(可选),哪些需要修改就填哪些字段
默认style = {
"size": 6.0,# 字体大小, 默认为6.0
"bold": False,# 是否加粗, 默认为否
"italic": False,# 是否斜体, 默认为否
"underline": False,# 是否加下划线, 默认为否
"color": (1.0, 1.0, 1.0), # 字体颜色, RGB三元组, 取值范围为[0, 1], 默认为白色
"alpha": 1.0,# 字体不透明度, 取值范围[0, 1], 默认不透明
"align": 0, # 对齐方式, 0: 左对齐, 1: 居中, 2: 右对齐, 默 认为左对齐
"vertical": False,#是否为竖排文本, 默认为否
"letter_spacing": 0,# 字符间距, 定义与剪映中一致, 默认为0
"line_spacing": 0,# 行间距, 定义与剪映中一致, 默认为0
"auto_wrapping": False,# 是否自动换行, 默认关闭
"max_line_width": 0.82 # 每行最大行宽占屏幕宽度比例, 取值范围为[0, 1], 默认为0.82
}
clip_settings: 图像调节设置字典(可选),哪些需要修改就填哪些字段
默认 clip_settings = {
"alpha": 1.0, # 图像不透明度, 0-1. 默认为1.0.
"flip_horizontal": False, # 是否水平翻转. 默认为False.
"flip_vertical": False, # 是否垂直翻转. 默认为False.
"rotation": 0.0, # 顺时针旋转的**角度**, 可正可负. 默认为0.0.
"scale_x": 1.0, # 水平缩放比例. 默认为1.0.
"scale_y": 1.0, # 垂直缩放比例. 默认为1.0.
"transform_x": 0.0, # 水平位移, 单位为半个画布宽. 默认为0.0.
"transform_y": 0.0 # 垂直位移, 单位为半个画布高. 默认为0.0.但强烈建议修改为-0.8(这样字幕是在正下方,不影响视频观感)
}
border: 文本描边参数字典(可选),哪些需要修改就填哪些字段
stroke_style = {
"alpha": 1.0, # 描边不透明度, 取值范围[0, 1], 默认为1.0
"color": (0.0, 0.0, 0.0), # 描边颜色, RGB三元组, 取值范围为[0, 1], 默认为黑色
"width": 40.0 # 描边宽度, 与剪映中一致, 取值范围为[0, 100], 默认为40.0
}
background: 文本背景参数字典(可选),哪些需要修改就填哪些字段
默认 background = {
"color": "#000000", # 背景颜色, 格式为'#RRGGBB' (默认为黑色)
"style": 1, # 背景样式, 1和2分别对应剪映中的两种样式, 默认为1
"alpha": 1.0, # 背景不透明度, 与剪映中一致, 取值范围[0, 1], 默认为1.0
"round_radius": 0.0, # 背景圆角半径, 与剪映中一致, 取值范围[0, 1], 默认为0.0
"height": 0. 14, # 背景高度, 与剪映中一致, 取值范围为[0, 1], 默认为0.14
"width": 0.14, # 背景宽度, 与剪映中一致, 取值范围为[0, 1], 默认为0.14
"horizontal_offset": 0.5, # 背景水平偏移, 与剪映中一致, 取值范围为[0, 1], 默认为0.5
"vertical_offset": 0.5 # 背景竖直偏移, 与剪映中一致, 取值范围为[0, 1], 默认为0.5
}
Examples:
# 基础文本
add_text_segment("track_id", "Hello World", "0s-5s")
# 带样式的文本
add_text_segment("track_id", "标题文本", "0s-3s",
style={"size": 12.0, "bold": True, "color": (1.0, 0.0, 0.0)})
# 带描边的文本
add_text_segment("track_id", "描边文本", "2s-7s",
border={"width": 20.0, "color": (0.0, 0.0, 0.0)})
# 带背景的文本
add_text_segment("track_id", "背景文本", "5s-10s",
background={"color": "#FF0000", "alpha": 0.8})add_video_animationtool 为视频片段添加动画效果Filesoutside text
为视频片段添加动画效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
animation_type: 动画类型,支持 "IntroType", "OutroType", "GroupAnimationType"
animation_name: 动画名称,如 "上下抖动", "向上滑动" 等,可以使用find_effects_by_type工具,资源类型选择IntroType、OutroType、GroupAnimationType,从而获取动画类型有哪些
duration: 动画持续时间,格式如 "1s"(可选)add_video_background_fillingtool 为视频片段添加背景填充效果Filesoutside text
为视频片段添加背景填充效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
fill_type: 填充类型,"blur"表示模糊,"color"表示颜色
blur: 模糊程度,范围0.0-1.0,仅在fill_type为"blur"时有效,默认0.0625
剪映中的四档模糊数值分别为0.0625, 0.375, 0.75和1.0
color: 填充颜色,格式为'#RRGGBBAA',仅在fill_type为"color"时有效,默认"#00000000"add_video_effecttool 为视频片段添加特效Filesoutside text
为视频片段添加特效
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
effect_type: 特效类型名称,可以使用find_effects_by_type工具,资源类型选择VIDEO_SCENE、VIDEO_CHARACTER,从而获取特效类型有哪些
params: 特效参数列表(可选),参数范围0-100,具体参数数量和含义取决于特效类型add_video_filtertool 为视频片段添加滤镜效果Filesoutside text
为视频片段添加滤镜效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
filter_type: 滤镜类型名称,可以使用find_effects_by_type工具,资源类型选择filter_type,从而获取滤镜类型有哪些
intensity: 滤镜强度,范围0-100,默认100.0add_video_keyframetool 为视频片段添加关键帧Filesoutside text
为视频片段添加关键帧
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
property_name: 属性名称,可选参数如下:
position_x:右移为正, 此处的数值应该为`剪映中显示的值` / `草稿宽度`, 也即单位是半个画布宽
position_y:上移为正, 此处的数值应该为`剪映中显示的值` / `草稿高度`, 也即单位是半个画布高
rotation:顺时针旋转的**角度**
scale_x:单独控制X轴缩放比例(1.0为不缩放), 与`uniform_scale`互斥
scale_y:单独控制Y轴缩放比例(1.0为不缩放), 与`uniform_scale`互斥
uniform_scale:同时控制X轴及Y轴缩放比例(1.0为不缩放), 与`scale_x`和`scale_y`互斥
alpha:不透明度, 1.0为完全不透明, 仅对`VideoSegment`有效
saturation:饱和度, 0.0为原始饱和度, 范围为-1.0到1.0
contrast:对比度, 0.0为原始对比度, 范围为-1.0到1.0
brightness:亮度, 0.0为原始亮度, 范围为-1.0到1.0
volume:音量, 1.0为原始音量
time_offset: 时间偏移量,格式如 "0.5s", "1s" 等
value: 属性值
Examples:
# 在0.5秒时设置水平位置
add_video_keyframe("video_segment_id", "position_x", "0.5s", 0.2)
# 在1秒时设置旋转角度
add_video_keyframe("video_segment_id", "rotation", "1s", 45.0)
# 在2秒时设置透明度
add_video_keyframe("video_segment_id", "alpha", "2s", 0.5)add_video_masktool 为视频片段添加蒙版效果Filesoutside text
为视频片段添加蒙版效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
mask_type: 蒙版类型名称,可以使用find_effects_by_type工具,资源类型选择mask_type,从而获取蒙版类型有哪些
center_x: 蒙版中心点X坐标(以素材的像素为单位),默认0.0(素材中心)
center_y: 蒙版中心点Y坐标(以素材的像素为单位),默认0.0(素材中心)
size: 蒙版的主要尺寸,以占素材高度的比例表示,默认0.5
rotation: 蒙版顺时针旋转的角度,默认0.0
feather: 蒙版的羽化参数,取值范围0~100,默认0.0
invert: 是否反转蒙版,默认False
rect_width: 矩形蒙版的宽度,仅在蒙版类型为矩形时有效,以占素材宽度的比例表示
round_corner: 矩形蒙版的圆角参数,仅在蒙版类型为矩形时有效,取值范围0~100add_video_transitiontool 为视频片段添加转场效果,注意两视频间添加转场应该在前一个添加转场,即video_segment_id使用前一个视频Filesoutside text
为视频片段添加转场效果,注意两视频间添加转场应该在前一个添加转场,即video_segment_id使用前一个视频
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
transition_type: 转场类型名称,可以使用find_effects_by_type工具,资源类型选择TransitionType,从而获取转场类型有哪些
duration: 转场持续时间,格式如 "1s"(可选)create_drafttool 创建草稿Filesoutside text
创建草稿
Args:
draft_name: str 草稿名称
width: int,视频宽度,默认1920
height: int,视频高度,默认1080
fps: int,帧率,默认30create_tracktool 创建轨道Filesoutside text
创建轨道
Args:
draft_id: 草稿ID
track_type: 轨道类型,支持 "video", "audio", "text",
一个轨道可以有多个素材,如video轨道想添加两个视频,使用同一个track_id就可以
track_name: 轨道名称,同类型轨道名不能相同find_effects_by_typetool 根据类型查找剪映特效资源
根据类型查找剪映特效资源
Args:
effect_type: 特效类型,支持以下类型:
- "VIDEO_SCENE": 视频画面特效
- "ToneEffectType": 音频音色特效
- "AudioSceneEffectType": 音频场景特效
- "filter_type": 滤镜特效
- "SpeechToSongType": 语音转歌曲特效
- "mask_type": 蒙版特效
- "TransitionType": 转场特效
- "Font": 字体
- "TextIntro": 文字入场动画
- "TextOutro": 文字出场动画
- "TextLoopAnim": 文字循环动画
- "GroupAnimationType": 组合动画
- "VIDEO_CHARACTER": 视频人物特效
- "IntroType": 视频/图片入场动画
- "OutroType": 视频/图片出场动画
is_vip: 是否只获取VIP资源,None表示获取所有
limit: 返回数量限制,None表示返回全部
keyword: 模糊匹配关键词,用于搜索特效名称parse_media_infotool 解析媒体文件信息
解析媒体文件信息
Args:
media_path: 媒体文件路径或URL,支持本地文件和网络URL,不论任何类型的文件都可以,视频可返回时长、分辨率,图片可返回尺寸rulestool 制作视频的规范,这一步必须执行,方便了解如何规范的使用工具制作视频
制作视频的规范,这一步必须执行,方便了解如何规范的使用工具制作视频
Text the model reads (20)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
add_audio_segment tool
添加音频片段到指定轨道,须注意 target_start_end和 source_start_end 的使用规则
Args:
track_id: 轨道ID,通过create_track获得
material: 音频文件路径,支持本地文件路径或URL
target_start_end: 片段在轨道上的目标时间范围,格式如 "0s-4.2s",表示在轨道上从0s开始,持续4.2s,target_start_end参数描述的是轨道上的时间范围,同一轨道中不可有重复时间段,即0s-4.2s和4s-5s,第一段素材最后0.2s与第二段素材重叠了,只能是0s-4.2s和4.ss-5s
source_start_end: 从源音频文件中截取的时间范围,格式如 "1s-4.2s",表示从源音频的1s开始截取,到4.2s结束(可选),source_start_end参数描述的是素材本身取的时长,默认取全部时长,一般情况下不设置,除非用户说明,若素材时长为5s,用户需要取其中1s-5s的内容,才配置
speed: 播放速度,默认为1.0。此项与source_timerange同时指定时,将覆盖target_timerange中的时长(可选)
volume: 音量,默认为1.0
change_pitch: 是否跟随变速改变音调,默认为Falseadd_audio_effect tool
为音频片段添加特效
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
effect_type: 特效类型,支持以下类型:
- "AudioSceneEffectType": 场景音效(如雨声、风声等)
- "ToneEffectType": 音调特效(如机器人、电音等)
- "SpeechToSongType": 语音转歌声特效(如Lofi、流行等)
effect_name: 特效名称,如 "雨声", "机器人", "Lofi", "电音", "回声" 等,可以使用find_effects_by_type工具,资源类型选择AudioSceneEffectType、ToneEffectType、SpeechToSongType,从而获取特效类型有哪些
params: 特效参数列表(可选),参数范围0-100,具体参数数量和含义取决于特效类型,一般不做修改add_audio_fade tool
为音频片段添加淡入淡出效果
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
in_duration: 音频淡入时长,格式如 "1s", "500ms", "0.5s"
out_duration: 音频淡出时长,格式如 "1s", "500ms", "0.5s"add_audio_keyframe tool
为音频片段添加音量关键帧
Args:
audio_segment_id: 音频片段ID,通过add_audio_segment获得
time_offset: 关键帧的时间偏移量,格式如 "0s", "1.5s", "500ms"
volume: 音量在time_offset处的值,范围通常0.0-1.0,也可以大于1.0实现增益效果rules tool
制作视频的规范,这一步必须执行,方便了解如何规范的使用工具制作视频
create_draft tool
创建草稿
Args:
draft_name: str 草稿名称
width: int,视频宽度,默认1920
height: int,视频高度,默认1080
fps: int,帧率,默认30export_draft tool
导出草稿为剪映项目,导出到本地剪映的草稿路径下
Args:
draft_id: 草稿ID,必须是已存在的草稿
jianying_draft_path: 导出路径add_text_segment tool
添加文本片段到指定轨道
Args:
track_id: 轨道ID,通过create_track获得
text: 文本内容
target_start_end: 片段在轨道上的目标时间范围,格式如 "1s-4.2s",表示在轨道上从1s开始,到4.2s结束
font: 字体类型名称(可选)
style: 字体样式字典(可选),哪些需要修改就填哪些字段
默认style = {
"size": 6.0,# 字体大小, 默认为6.0
"bold": False,# 是否加粗, 默认为否
"italic": False,# 是否斜体, 默认为否
"underline": False,# 是否加下划线, 默认为否
"color": (1.0, 1.0, 1.0), # 字体颜色, RGB三元组, 取值范围为[0, 1], 默认为白色
"alpha": 1.0,# 字体不透明度, 取值范围[0, 1], 默认不透明
"align": 0, # 对齐方式, 0: 左对齐, 1: 居中, 2: 右对齐, 默 认为左对齐
"vertical": False,#是否为竖排文本, 默认为否
"letter_spacing": 0,# 字符间距, 定义与剪映中一致, 默认为0
"line_spacing": 0,# 行间距, 定义与剪映中一致, 默认为0
"auto_wrapping": False,# 是否自动换行, 默认关闭
"max_line_width": 0.82 # 每行最大行宽占屏幕宽度比例, 取值范围为[0, 1], 默认为0.82
}
clip_settings: 图像调节设置字典(可选),哪些需要修改就填哪些字段
默认 clip_settings = {
"alpha": 1.0, # 图像不透明度, 0-1. 默认为1.0.
"flip_horizontal": False, # 是否水平翻转. 默认为False.
"flip_vertical": False, # 是否垂直翻转. 默认为False.
"rotation": 0.0, # 顺时针旋转的**角度**, 可正可负. 默认为0.0.
"scale_x": 1.0, # 水平缩放比例. 默认为1.0.
"scale_y": 1.0, # 垂直缩放比例. 默认为1.0.
"transform_x": 0.0, # 水平位移, 单位为半个画布宽. 默认为0.0.
"transform_y": 0.0 # 垂直位移, 单位为半个画布高. 默认为0.0.但强烈建议修改为-0.8(这样字幕是在正下方,不影响视频观感)
}
border: 文本描边参数字典(可选),哪些需要修改就填哪些字段
stroke_style = {
"alpha": 1.0, # 描边不透明度, 取值范围[0, 1], 默认为1.0
"color": (0.0, 0.0, 0.0), # 描边颜色, RGB三元组, 取值范围为[0, 1], 默认为黑色
"width": 40.0 # 描边宽度, 与剪映中一致, 取值范围为[0, 100], 默认为40.0
}
background: 文本背景参数字典(可选),哪些需要修改就填哪些字段
默认 background = {
"color": "#000000", # 背景颜色, 格式为'#RRGGBB' (默认为黑色)
"style": 1, # 背景样式, 1和2分别对应剪映中的两种样式, 默认为1
"alpha": 1.0, # 背景不透明度, 与剪映中一致, 取值范围[0, 1], 默认为1.0
"round_radius": 0.0, # 背景圆角半径, 与剪映中一致, 取值范围[0, 1], 默认为0.0
"height": 0. 14, # 背景高度, 与剪映中一致, 取值范围为[0, 1], 默认为0.14
"width": 0.14, # 背景宽度, 与剪映中一致, 取值范围为[0, 1], 默认为0.14
"horizontal_offset": 0.5, # 背景水平偏移, 与剪映中一致, 取值范围为[0, 1], 默认为0.5
"vertical_offset": 0.5 # 背景竖直偏移, 与剪映中一致, 取值范围为[0, 1], 默认为0.5
}
Examples:
# 基础文本
add_text_segment("track_id", "Hello World", "0s-5s")
# 带样式的文本
add_text_segment("track_id", "标题文本", "0s-3s",
style={"size": 12.0, "bold": True, "color": (1.0, 0.0, 0.0)})
# 带描边的文本
add_text_segment("track_id", "描边文本", "2s-7s",
border={"width": 20.0, "color": (0.0, 0.0, 0.0)})
# 带背景的文本
add_text_segment("track_id", "背景文本", "5s-10s",
background={"color": "#FF0000", "alpha": 0.8})add_text_animation tool
为文本片段添加动画效果
Args:
text_segment_id: 文本片段ID,通过add_text_segment获得
animation_type: 动画类型,支持以下类型:
- "TextIntro": 入场动画
- "TextOutro": 出场动画
- "TextLoopAnim": 循环动画
animation_name: 动画名称,如 "复古打字机", "弹簧", "色差故障", "淡入", "淡出" 等,可以使用find_effects_by_type工具,资源类型选择TextIntro、TextOutro、TextLoopAnim,从而获取动画类型有哪些
duration: 动画持续时间(可选),格式如 "1s", "500ms"create_track tool
创建轨道
Args:
draft_id: 草稿ID
track_type: 轨道类型,支持 "video", "audio", "text",
一个轨道可以有多个素材,如video轨道想添加两个视频,使用同一个track_id就可以
track_name: 轨道名称,同类型轨道名不能相同find_effects_by_type tool
根据类型查找剪映特效资源
Args:
effect_type: 特效类型,支持以下类型:
- "VIDEO_SCENE": 视频画面特效
- "ToneEffectType": 音频音色特效
- "AudioSceneEffectType": 音频场景特效
- "filter_type": 滤镜特效
- "SpeechToSongType": 语音转歌曲特效
- "mask_type": 蒙版特效
- "TransitionType": 转场特效
- "Font": 字体
- "TextIntro": 文字入场动画
- "TextOutro": 文字出场动画
- "TextLoopAnim": 文字循环动画
- "GroupAnimationType": 组合动画
- "VIDEO_CHARACTER": 视频人物特效
- "IntroType": 视频/图片入场动画
- "OutroType": 视频/图片出场动画
is_vip: 是否只获取VIP资源,None表示获取所有
limit: 返回数量限制,None表示返回全部
keyword: 模糊匹配关键词,用于搜索特效名称parse_media_info tool
解析媒体文件信息
Args:
media_path: 媒体文件路径或URL,支持本地文件和网络URL,不论任何类型的文件都可以,视频可返回时长、分辨率,图片可返回尺寸add_video_segment tool
添加视频片段到指定轨道,须注意target_timerange和source_timerange的使用规则
Args:
track_id: 轨道ID,通过create_track获得
material: 视频文件路径,包括文本文件路径或者url
target_start_end: 片段在轨道上的目标时间范围,格式如 "1s-4.2s",表示在轨道上从1s开始,到4.2s结束,target_start_end参数描述的是轨道上的时间范围,同一轨道中不可有重复时间段,即0s-4.2s和4s-5s,第一段素材最后0.2s与第二段素材重叠了,只能是0s-4.2s和4.ss-5s
source_start_end: 从源视频文件中截取的时间范围,格式如 "1s-4.2s",表示从源视频的1s开始截取,到4.2s结束(可选),source_start_end参数描述的是素材本身取的时长,默认取全部时长,一般情况下不设置,除非用户说明,若素材时长为5s,用户需要取其中1s-5s的内容,才配置
speed: (`float`, optional): 播放速度, 默认为1.0,此项与`source_timerange`同时指定时, 将覆盖`target_timerange`中的时长
volume: (`float`, optional): 音量, 默认为1.0
change_pitch: (`bool`, optional): 是否跟随变速改变音调, 默认为否
clip_settings: (`Dict`, optional)图像调节设置字典(可选),哪些需要修改就填哪些字段
默认 clip_settings = {
"alpha": 1.0, # 图像不透明度, 0-1. 默认为1.0.
"flip_horizontal": False, # 是否水平翻转. 默认为False.
"flip_vertical": False, # 是否垂直翻转. 默认为False.
"rotation": 0.0, # 顺时针旋转的**角度**, 可正可负. 默认为0.0.
"scale_x": 1.0, # 水平缩放比例. 默认为1.0.
"scale_y": 1.0, # 垂直缩放比例. 默认为1.0.
"transform_x": 0.0, # 水平位移, 单位为半个画布宽. 默认为0.0.
"transform_y": 0.0 # 垂直位移, 单位为半个画布高. 默认为0.0.
}
Returns:
ToolResponse: 包含操作结果的响应,格式为 {"success": bool, "message": str, "data": dict, "video_segment_id": str}
Examples:
# 基本用法
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s")
# 指定源时间范围
add_video_segment("track_id", "/path/to/video.mp4", "0s-3s", source_timerange="10s-3s")
# 设置播放速度和音量
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s", speed=2.0, volume=0.8)
# 设置图像调节
add_video_segment("track_id", "/path/to/video.mp4", "0s-5s",
clip_settings={"alpha": 0.8, "scale_x": 1.2, "rotation": 45})add_video_animation tool
为视频片段添加动画效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
animation_type: 动画类型,支持 "IntroType", "OutroType", "GroupAnimationType"
animation_name: 动画名称,如 "上下抖动", "向上滑动" 等,可以使用find_effects_by_type工具,资源类型选择IntroType、OutroType、GroupAnimationType,从而获取动画类型有哪些
duration: 动画持续时间,格式如 "1s"(可选)add_video_transition tool
为视频片段添加转场效果,注意两视频间添加转场应该在前一个添加转场,即video_segment_id使用前一个视频
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
transition_type: 转场类型名称,可以使用find_effects_by_type工具,资源类型选择TransitionType,从而获取转场类型有哪些
duration: 转场持续时间,格式如 "1s"(可选)add_video_keyframe tool
为视频片段添加关键帧
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
property_name: 属性名称,可选参数如下:
position_x:右移为正, 此处的数值应该为`剪映中显示的值` / `草稿宽度`, 也即单位是半个画布宽
position_y:上移为正, 此处的数值应该为`剪映中显示的值` / `草稿高度`, 也即单位是半个画布高
rotation:顺时针旋转的**角度**
scale_x:单独控制X轴缩放比例(1.0为不缩放), 与`uniform_scale`互斥
scale_y:单独控制Y轴缩放比例(1.0为不缩放), 与`uniform_scale`互斥
uniform_scale:同时控制X轴及Y轴缩放比例(1.0为不缩放), 与`scale_x`和`scale_y`互斥
alpha:不透明度, 1.0为完全不透明, 仅对`VideoSegment`有效
saturation:饱和度, 0.0为原始饱和度, 范围为-1.0到1.0
contrast:对比度, 0.0为原始对比度, 范围为-1.0到1.0
brightness:亮度, 0.0为原始亮度, 范围为-1.0到1.0
volume:音量, 1.0为原始音量
time_offset: 时间偏移量,格式如 "0.5s", "1s" 等
value: 属性值
Examples:
# 在0.5秒时设置水平位置
add_video_keyframe("video_segment_id", "position_x", "0.5s", 0.2)
# 在1秒时设置旋转角度
add_video_keyframe("video_segment_id", "rotation", "1s", 45.0)
# 在2秒时设置透明度
add_video_keyframe("video_segment_id", "alpha", "2s", 0.5)add_video_filter tool
为视频片段添加滤镜效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
filter_type: 滤镜类型名称,可以使用find_effects_by_type工具,资源类型选择filter_type,从而获取滤镜类型有哪些
intensity: 滤镜强度,范围0-100,默认100.0add_video_background_filling tool
为视频片段添加背景填充效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
fill_type: 填充类型,"blur"表示模糊,"color"表示颜色
blur: 模糊程度,范围0.0-1.0,仅在fill_type为"blur"时有效,默认0.0625
剪映中的四档模糊数值分别为0.0625, 0.375, 0.75和1.0
color: 填充颜色,格式为'#RRGGBBAA',仅在fill_type为"color"时有效,默认"#00000000"add_video_mask tool
为视频片段添加蒙版效果
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
mask_type: 蒙版类型名称,可以使用find_effects_by_type工具,资源类型选择mask_type,从而获取蒙版类型有哪些
center_x: 蒙版中心点X坐标(以素材的像素为单位),默认0.0(素材中心)
center_y: 蒙版中心点Y坐标(以素材的像素为单位),默认0.0(素材中心)
size: 蒙版的主要尺寸,以占素材高度的比例表示,默认0.5
rotation: 蒙版顺时针旋转的角度,默认0.0
feather: 蒙版的羽化参数,取值范围0~100,默认0.0
invert: 是否反转蒙版,默认False
rect_width: 矩形蒙版的宽度,仅在蒙版类型为矩形时有效,以占素材宽度的比例表示
round_corner: 矩形蒙版的圆角参数,仅在蒙版类型为矩形时有效,取值范围0~100add_video_effect tool
为视频片段添加特效
Args:
video_segment_id: 视频片段ID,通过add_video_segment获得
effect_type: 特效类型名称,可以使用find_effects_by_type工具,资源类型选择VIDEO_SCENE、VIDEO_CHARACTER,从而获取特效类型有哪些
params: 特效参数列表(可选),参数范围0-100,具体参数数量和含义取决于特效类型What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path HIGH7 findings in add_video_segment, export_draft; 1 more to review
- Requests any address1 finding the scanner could not decide; see the findings below
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 20 capabilities; 19 more call code the scanner could not follow, where it may happen
- Tools that touch files17 of 20 capabilities touch files; 2 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 20 capabilities; 19 more call code the scanner could not follow, where it may happen
Where the code is: 20 handlers in 6 files at commit f312beac6091
jianyingdraft/tool/audio_tool.pyadd_audio_segment, add_audio_effect, add_audio_fade, add_audio_keyframejianyingdraft/tool/draft_tool.pyrules, create_draft, export_draftjianyingdraft/tool/text_tool.pyadd_text_segment, add_text_animationjianyingdraft/tool/track_tool.pycreate_trackjianyingdraft/tool/utility_tool.pyfind_effects_by_type, parse_media_infojianyingdraft/tool/video_tool.pyadd_video_segment, add_video_animation, add_video_transition, add_video_keyframe, add_video_filter, add_video_background_filling, add_video_mask, add_video_effect
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies CRITICAL11 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 20 capabilities; 19 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (11 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
pillowPyPI 11.3.0 CRITICAL 96 advisories 12.1.112.2.012.3.0+1 more
- CRITICALGHSA-w889-685w-c8fh BIT-pillow-2026-112900 CVE-2026-112900Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
- CRITICALGHSA-332p-7hrc-92wf BIT-pillow-2026-112393 CVE-2026-112393Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
- CRITICALGHSA-8g5g-8vmr-9782 BIT-pillow-2026-112403 CVE-2026-112403 PYSEC-2026-4332Pillow: Heap buffer overflow in ImagingJpegDecode
- CRITICALGHSA-5x8w-8jj5-q52h BIT-pillow-2026-112398 CVE-2026-112398 PYSEC-2026-4330Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
- CRITICALGHSA-v9pv-5gc8-w2m6 BIT-pillow-2026-96639 CVE-2026-96639 PYSEC-2026-4339Pillow multi-frame loaders can reuse stale native image storage after mode transitions
- HIGHGHSA-cfh3-3jmp-rvhc BIT-pillow-2026-25990 CVE-2026-25990 PYSEC-2026-2249Pillow affected by out-of-bounds write when loading PSD images
- HIGHGHSA-65qm-jvmh-6pqg BIT-pillow-2026-112400 CVE-2026-112400Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
- HIGHGHSA-vjc4-5qp5-m44j BIT-pillow-2026-59204 CVE-2026-59204 PYSEC-2026-3496Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
- HIGHGHSA-5xm2-6676-qcp9 BIT-pillow-2026-112399 CVE-2026-112399Pillow: APNG background disposal allocates full canvas before decompression bomb check
- HIGHGHSA-phj9-mv4w-65pm BIT-pillow-2026-55380 CVE-2026-55380 PYSEC-2026-2256Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
- HIGHGHSA-jg86-v3jv-hrpm BIT-pillow-2026-112894 CVE-2026-112894Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
- HIGHGHSA-g7cr-3p24-7wf7 BIT-pillow-2026-96778 CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
- HIGHGHSA-c6hw-5grf-ff96 BIT-pillow-2026-112404 CVE-2026-112404Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
- HIGHGHSA-g4qv-2jxx-769h BIT-pillow-2026-96643 CVE-2026-96643 PYSEC-2026-4342Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
- HIGHGHSA-mrfp-p49p-3hf2 BIT-pillow-2026-96640 CVE-2026-96640Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
- HIGHGHSA-5x94-69rx-g8h2 BIT-pillow-2026-54060 CVE-2026-54060 PYSEC-2026-2254Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
- HIGHGHSA-xvh5-g6gv-559v BIT-pillow-2026-112902 CVE-2026-112902 PYSEC-2026-4363 Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
- HIGHGHSA-62p4-gmf7-7g93 BIT-pillow-2026-54058 CVE-2026-54058 PYSEC-2026-3493Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
- HIGHGHSA-58r4-6rv3-gfh8 BIT-pillow-2026-112397 CVE-2026-112397 PYSEC-2026-4329Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
- HIGHGHSA-whj4-6x5x-4v2j BIT-pillow-2026-40192 CVE-2026-40192 PYSEC-2026-2250FITS GZIP decompression bomb in Pillow
- HIGHGHSA-45hq-cxwh-f6vc BIT-pillow-2026-55379 CVE-2026-55379 PYSEC-2026-2255Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
- HIGHGHSA-jjj6-mw9f-p565 BIT-pillow-2026-59200 CVE-2026-59200 PYSEC-2026-3495Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
- HIGHGHSA-3j72-p6qg-6xp7 BIT-pillow-2026-96642 CVE-2026-96642 PYSEC-2026-4341Pillow: TarIO negative size field causes infinite CPU-spin loop
- HIGHGHSA-xcvg-w56q-r89m CVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
- HIGHGHSA-22hg-r758-rrw9 BIT-pillow-2026-112390 CVE-2026-112390Pillow: Infinite loop in MIC n_frames when the embedded TIFF
- HIGHGHSA-q45j-58j2-45rg BIT-pillow-2026-112897 CVE-2026-112897Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
- HIGHGHSA-xj96-63gp-2gmr BIT-pillow-2026-59197 CVE-2026-59197 PYSEC-2026-3454Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
- HIGHGHSA-p4wg-p73j-c528 BIT-pillow-2026-112895 CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
- HIGHGHSA-f2g6-542v-9j58 BIT-pillow-2026-112406 CVE-2026-112406Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
- HIGHGHSA-8v84-f9pq-wr9x BIT-pillow-2026-54059 CVE-2026-54059 PYSEC-2026-2253Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
- HIGHGHSA-g842-9rc4-69pw BIT-pillow-2026-96637 CVE-2026-96637 PYSEC-2026-4338Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
- HIGHGHSA-6r8x-57c9-28j4 BIT-pillow-2026-59199 CVE-2026-59199 PYSEC-2026-3451Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
- HIGHGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
- HIGHGHSA-9v9v-9qvf-h2hj BIT-pillow-2026-96644 CVE-2026-96644 PYSEC-2026-4343Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
- HIGHGHSA-pwv6-vv43-88gr BIT-pillow-2026-42311 CVE-2026-42311 PYSEC-2026-2252Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
- HIGHGHSA-pchr-8j38-3x4p BIT-pillow-2026-112896 CVE-2026-112896 PYSEC-2026-4334Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
- HIGHGHSA-j4m9-6w36-pw47 BIT-pillow-2026-112893 CVE-2026-112893Pillow: Invalid free in FreeType glyph rendering when a stroker is active
- HIGHGHSA-9hw9-ch79-4vh6 BIT-pillow-2026-59205 CVE-2026-59205 PYSEC-2026-3453Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
- HIGHGHSA-27h8-gf7j-v5hc BIT-pillow-2026-112392 CVE-2026-112392 PYSEC-2026-4326Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
- HIGHGHSA-7mwm-ghpf-9vrm BIT-pillow-2026-112402 CVE-2026-112402 PYSEC-2026-4331Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
- HIGHGHSA-gg2r-wvfm-q9rx BIT-pillow-2026-112892 CVE-2026-112892Pillow: MSP RLE decoder expands a tiny file into unbounded memory
- MEDIUMPYSEC-2026-2255 BIT-pillow-2026-55379 CVE-2026-55379 GHSA-45hq-cxwh-f6vcPillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker-controlled dimensions to Image.new() without calling Image._decompression_bomb_check(), bypassing Pillow's documented decompression bomb protection and allowing excessive memory allocation. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-4342 BIT-pillow-2026-96643 CVE-2026-96643 GHSA-g4qv-2jxx-769hPillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4330 BIT-pillow-2026-112398 CVE-2026-112398 GHSA-5x8w-8jj5-q52hPillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4338 BIT-pillow-2026-96637 CVE-2026-96637 GHSA-g842-9rc4-69pwPillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4341 BIT-pillow-2026-96642 CVE-2026-96642 GHSA-3j72-p6qg-6xp7Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2253 BIT-pillow-2026-54059 CVE-2026-54059 GHSA-8v84-f9pq-wr9xPillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-3496 BIT-pillow-2026-59204 CVE-2026-59204 GHSA-vjc4-5qp5-m44jPillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
- MEDIUMGHSA-wqgw-9xfh-qf2g CVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
- MEDIUMGHSA-24rc-8hj2-v98c BIT-pillow-2026-96638 CVE-2026-96638Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
- MEDIUMGHSA-p8hx-v2p6-rp84 BIT-pillow-2026-96636 CVE-2026-96636 PYSEC-2026-4337Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
- MEDIUMGHSA-4rm8-3hmm-39fg BIT-pillow-2026-96641 CVE-2026-96641 PYSEC-2026-4340Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
- MEDIUMPYSEC-2026-2257 BIT-pillow-2026-55798 CVE-2026-55798 GHSA-4x4j-2g7c-83w6Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.
- MEDIUMGHSA-4558-3h8r-v8xp BIT-pillow-2026-112394 CVE-2026-112394 PYSEC-2026-4327Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
- MEDIUMPYSEC-2026-3494 BIT-pillow-2026-59198 CVE-2026-59198 GHSA-fj7v-r99m-22gqPillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
- MEDIUMPYSEC-2026-3451 BIT-pillow-2026-59199 CVE-2026-59199 GHSA-6r8x-57c9-28j4Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates near the signed 32-bit integer limits in Image.paste(), Image.crop(), or Image.alpha_composite(). This issue is fixed in version 12.3.0.
- MEDIUMGHSA-254f-3936-288h BIT-pillow-2026-112391 CVE-2026-112391Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
- MEDIUMPYSEC-2026-3495 BIT-pillow-2026-59200 CVE-2026-59200 GHSA-jjj6-mw9f-p565Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
- MEDIUMPYSEC-2026-2249 BIT-pillow-2026-25990 CVE-2026-25990 GHSA-cfh3-3jmp-rvhcPillow is a Python imaging library. From 10.3.0 to before 12.1.1, an out-of-bounds write may be triggered when loading a specially crafted PSD image. This vulnerability is fixed in 12.1.1.
- MEDIUMGHSA-wjx4-4jcj-g98j BIT-pillow-2026-42308 CVE-2026-42308 PYSEC-2026-165Pillow has an integer overflow when processing fonts
- MEDIUMPYSEC-2026-4332 BIT-pillow-2026-112403 CVE-2026-112403 GHSA-8g5g-8vmr-9782Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2252 BIT-pillow-2026-42311 CVE-2026-42311 GHSA-pwv6-vv43-88grPillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
- MEDIUMGHSA-vx6w-vv9f-6gvg BIT-pillow-2026-112899 CVE-2026-112899Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
- MEDIUMGHSA-r73j-pqj5-w3x7 BIT-pillow-2026-42310 CVE-2026-42310 PYSEC-2026-2874Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
- MEDIUMGHSA-fj7v-r99m-22gq BIT-pillow-2026-59198 CVE-2026-59198 PYSEC-2026-3494Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
- MEDIUMPYSEC-2026-3454 BIT-pillow-2026-59197 CVE-2026-59197 GHSA-xj96-63gp-2gmrPillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-2256 BIT-pillow-2026-55380 CVE-2026-55380 GHSA-phj9-mv4w-65pmPillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger excessive C-heap allocation when loaded. This issue is fixed in version 12.3.0.
- MEDIUMGHSA-654x-cwwv-5j9c BIT-pillow-2026-114501 CVE-2026-114501 PYSEC-2026-4336Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
- MEDIUMPYSEC-2026-3453 BIT-pillow-2026-59205 CVE-2026-59205 GHSA-9hw9-ch79-4vh6Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's declared output mode. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-2251 BIT-pillow-2026-42309 CVE-2026-42309 GHSA-5xmw-vc9v-4wf2Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.
- MEDIUMPYSEC-2026-4339 BIT-pillow-2026-96639 CVE-2026-96639 GHSA-v9pv-5gc8-w2m6Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4363 BIT-pillow-2026-112902 CVE-2026-112902 GHSA-xvh5-g6gv-559vPillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to TIFFSetField() that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4326 BIT-pillow-2026-112392 CVE-2026-112392 GHSA-27h8-gf7j-v5hcPillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4331 BIT-pillow-2026-112402 CVE-2026-112402 GHSA-7mwm-ghpf-9vrmPillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4336 BIT-pillow-2026-114501 CVE-2026-114501 GHSA-654x-cwwv-5j9cPillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before the first row. The resulting Arrow buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. Applications that configure alignment and export images to Arrow can therefore disclose one user's pixels or other process memory to another user. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-165 BIT-pillow-2026-42308 CVE-2026-42308 GHSA-wjx4-4jcj-g98jPillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.
- MEDIUMPYSEC-2026-4340 BIT-pillow-2026-96641 CVE-2026-96641 GHSA-4rm8-3hmm-39fgPillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-fc9g-5qg7-mf45 BIT-pillow-2026-112891 CVE-2026-112891Pillow: Quadratic GIF comment copying during save
- MEDIUMPYSEC-2026-4329 BIT-pillow-2026-112397 CVE-2026-112397 GHSA-58r4-6rv3-gfh8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-3493 BIT-pillow-2026-54058 CVE-2026-54058 GHSA-62p4-gmf7-7g93Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
- MEDIUMPYSEC-2026-4343 BIT-pillow-2026-96644 CVE-2026-96644 GHSA-9v9v-9qvf-h2hjPillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4337 BIT-pillow-2026-96636 CVE-2026-96636 GHSA-p8hx-v2p6-rp84Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-74r2-7ff9-mjj2 BIT-pillow-2026-112401 CVE-2026-112401Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
- MEDIUMGHSA-4x4j-2g7c-83w6 BIT-pillow-2026-55798 CVE-2026-55798 PYSEC-2026-2257Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
- MEDIUMGHSA-5xmw-vc9v-4wf2 BIT-pillow-2026-42309 CVE-2026-42309 PYSEC-2026-2251Pillow has a heap buffer overflow with nested list coordinates
- MEDIUMPYSEC-2026-4327 BIT-pillow-2026-112394 CVE-2026-112394 GHSA-4558-3h8r-v8xpPillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4328 BIT-pillow-2026-112396 CVE-2026-112396 GHSA-4rr5-89j8-mwwmPillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-xgh8-jp6q-p5x8 BIT-pillow-2026-112901 CVE-2026-112901 PYSEC-2026-4335Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
- MEDIUMPYSEC-2026-2250 BIT-pillow-2026-40192 CVE-2026-40192 GHSA-whj4-6x5x-4v2jPillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.
- MEDIUMGHSA-4rr5-89j8-mwwm BIT-pillow-2026-112396 CVE-2026-112396 PYSEC-2026-4328Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
- MEDIUMPYSEC-2026-4335 BIT-pillow-2026-112901 CVE-2026-112901 GHSA-xgh8-jp6q-p5x8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4334 BIT-pillow-2026-112896 CVE-2026-112896 GHSA-pchr-8j38-3x4pPillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2874 BIT-pillow-2026-42310 CVE-2026-42310 GHSA-r73j-pqj5-w3x7Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
- MEDIUMGHSA-rfgq-q3w2-pmv2 BIT-pillow-2026-112898 CVE-2026-112898Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
- MEDIUMGHSA-462x-pgg6-55fp BIT-pillow-2026-112395 CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
- MEDIUMPYSEC-2026-2254 BIT-pillow-2026-54060 CVE-2026-54060 GHSA-5x94-69rx-g8h2Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. This issue is fixed in version 12.3.0.
anyioPyPI 4.10.0 CRITICAL 4 advisories 4.14.2
- CRITICALGHSA-82r6-8w77-94w6 CVE-2026-63374 PYSEC-2026-4025AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
- MEDIUMPYSEC-2026-4025 CVE-2026-63374 GHSA-82r6-8w77-94w6AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
- MEDIUMGHSA-5p39-cfhj-2xmp CVE-2026-64847 PYSEC-2026-4024AnyIO process-pool workers can block indefinitely on undrained stderr
- MEDIUMPYSEC-2026-4024 CVE-2026-64847 GHSA-5p39-cfhj-2xmpAnyIO process-pool workers can block indefinitely on undrained stderr
certifiPyPI 2025.8.3 CRITICAL 2 advisories 2026.10.18
- CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
- MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
python-multipartPyPI 0.0.20 HIGH 14 advisories 0.0.220.0.260.0.27+2 more
- HIGHGHSA-pp6c-gr5w-3c5g CVE-2026-42561 PYSEC-2026-3039python-multipart has Denial of Service via unbounded multipart part headers
- HIGHGHSA-wp53-j4wj-2cfg CVE-2026-24486 PYSEC-2026-1852Python-Multipart has Arbitrary File Write via Non-Default Configuration
- HIGHGHSA-5rvq-cxj2-64vf CVE-2026-53539 PYSEC-2026-3036python-multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service
- MEDIUMPYSEC-2026-3040 CVE-2026-53540 GHSA-v9pg-7xvm-68hfpython-multipart: Negative Content-Length in parse_form buffers the entire body in memory
- MEDIUMPYSEC-2026-3039 CVE-2026-42561 GHSA-pp6c-gr5w-3c5gpython-multipart has Denial of Service via unbounded multipart part headers
- MEDIUMPYSEC-2026-3036 CVE-2026-53539 GHSA-5rvq-cxj2-64vfpython-multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service
- MEDIUMPYSEC-2026-3037 CVE-2026-53538 GHSA-6jv3-5f52-599mpython-multipart: Semicolon treated as querystring field separator enables parameter smuggling
- MEDIUMPYSEC-2026-3041 CVE-2026-53537 GHSA-vffw-93wf-4j4qpython-multipart: Content-Disposition parameter smuggling via RFC 2231/5987 extended parameters
- MEDIUMGHSA-mj87-hwqh-73pj CVE-2026-40347 PYSEC-2026-3038python-multipart affected by Denial of Service via large multipart preamble or epilogue data
- MEDIUMPYSEC-2026-1852 CVE-2026-24486 GHSA-wp53-j4wj-2cfgPython-Multipart has Arbitrary File Write via Non-Default Configuration
- MEDIUMPYSEC-2026-3038 CVE-2026-40347 GHSA-mj87-hwqh-73pjpython-multipart affected by Denial of Service via large multipart preamble or epilogue data
- LOWGHSA-v9pg-7xvm-68hf CVE-2026-53540 PYSEC-2026-3040python-multipart: Negative Content-Length in parse_form buffers the entire body in memory
- LOWGHSA-vffw-93wf-4j4q CVE-2026-53537 PYSEC-2026-3041python-multipart: Content-Disposition parameter smuggling via RFC 2231/5987 extended parameters
- LOWGHSA-6jv3-5f52-599m CVE-2026-53538 PYSEC-2026-3037python-multipart: Semicolon treated as querystring field separator enables parameter smuggling
starlettePyPI 0.47.2 HIGH 12 advisories 0.49.11.0.11.1.0+2 more
- HIGHGHSA-7f5h-v6xp-fcq8 CVE-2025-62727 PYSEC-2026-1942Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
- HIGHGHSA-wqp7-x3pw-xc5r CVE-2026-48818 PYSEC-2026-2281Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows
- HIGHGHSA-82w8-qh3p-5jfq CVE-2026-54283 PYSEC-2026-249Starlette: request.form() limits silently ignored for application/x-www-form-urlencoded enable DoS
- MEDIUMGHSA-86qp-5c8j-p5mr CVE-2026-48710 PYSEC-2026-161 X41-2026-002Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
- MEDIUMPYSEC-2026-1942 CVE-2025-62727 GHSA-7f5h-v6xp-fcq8Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
- MEDIUMPYSEC-2026-2280 CVE-2026-48817 GHSA-x746-7m8f-x49cStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.
- MEDIUMPYSEC-2026-248 CVE-2026-54282 GHSA-jp82-jpqv-5vv3Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host. This vulnerability is fixed in 1.3.0.
- MEDIUMPYSEC-2026-2281 CVE-2026-48818 GHSA-wqp7-x3pw-xc5rStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and earlier, StaticFiles on Windows is vulnerable to SSRF. An UNC path such as \\\\attacker.com\\share can cause os.path.realpath to initiate an outbound SMB connection before the path is rejected, exposing the service account’s NTLMv2 credentials for offline cracking or relay even though the HTTP response is only a 404. The issue affects default follow_symlink=False deployments, including frameworks built on Starlette such as FastAPI; POSIX systems and follow_symlink=True are unaffected. The issue is fixed in 1.1.0.
- MEDIUMGHSA-x746-7m8f-x49c CVE-2026-48817 PYSEC-2026-2280Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`
- MEDIUMPYSEC-2026-249 CVE-2026-54283 GHSA-82w8-qh3p-5jfqStarlette is a lightweight ASGI framework/toolkit. From 0.4.1 until 1.3.1, request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply. This vulnerability is fixed in 1.3.1.
- MEDIUMPYSEC-2026-161 CVE-2026-48710 GHSA-86qp-5c8j-p5mr X41-2026-002BadHost: Missing Host header validation poisons request.url.path, bypassing path-based security checks
- LOWGHSA-jp82-jpqv-5vv3 CVE-2026-54282 PYSEC-2026-248Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname
urllib3PyPI 2.5.0 HIGH 12 advisories 2.6.02.6.32.7.0+1 more
- HIGHGHSA-qccp-gfcp-xxvc CVE-2026-44431 PYSEC-2026-141urllib3: Sensitive headers forwarded across origins in proxied low-level redirects
- HIGHGHSA-8988-9cw3-xx77 CVE-2026-97687 PYSEC-2026-4175urllib3: HTTPS proxy TLS configuration may be ignored or overridden
- HIGHGHSA-38jv-5279-wg99 CVE-2026-21441 PYSEC-2026-1996Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
- HIGHGHSA-gm62-xv2j-4w53 CVE-2025-66418 PYSEC-2026-1998urllib3 allows an unbounded number of links in the decompression chain
- HIGHGHSA-2xpw-w6gg-jr37 CVE-2025-66471 PYSEC-2026-1994urllib3 streaming API improperly handles highly compressed data
- HIGHGHSA-vxq7-64xx-v4gw CVE-2026-97689 PYSEC-2026-4177urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
- MEDIUMPYSEC-2026-1998 CVE-2025-66418 GHSA-gm62-xv2j-4w53urllib3 allows an unbounded number of links in the decompression chain
- MEDIUMPYSEC-2026-1996 CVE-2026-21441 GHSA-38jv-5279-wg99Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
- MEDIUMPYSEC-2026-1994 CVE-2025-66471 GHSA-2xpw-w6gg-jr37urllib3 streaming API improperly handles highly compressed data
- MEDIUMPYSEC-2026-4175 CVE-2026-97687 GHSA-8988-9cw3-xx77urllib3: HTTPS proxy TLS configuration may be ignored or overridden
- MEDIUMPYSEC-2026-141 CVE-2026-44431 GHSA-qccp-gfcp-xxvcurllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.
- MEDIUMPYSEC-2026-4177 CVE-2026-97689 GHSA-vxq7-64xx-v4gwurllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
mcpPyPI 1.12.4 HIGH 11 advisories 1.23.01.27.21.28.1+2 more
- HIGHGHSA-jpw9-pfvf-9f58 CVE-2026-52869 PYSEC-2026-3482MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
- HIGHGHSA-vj7q-gjh5-988w CVE-2026-59950 PYSEC-2026-3483MCP Python SDK: WebSocket server transport does not support Host/Origin validation
- HIGHGHSA-9h52-p55h-vw2f CVE-2025-66416 PYSEC-2026-1617Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
- HIGHGHSA-qx49-fqc8-xw99 CVE-2026-115563Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- MEDIUMPYSEC-2026-3483 CVE-2026-59950 GHSA-vj7q-gjh5-988wMCP Python SDK: WebSocket server transport does not support Host/Origin validation
- MEDIUMGHSA-84m7-p3x7-pcfv CVE-2026-59951MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
- MEDIUMGHSA-w4fh-qvv9-3v23 CVE-2026-116684Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
- MEDIUMPYSEC-2026-3482 CVE-2026-52869 GHSA-jpw9-pfvf-9f58MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
- MEDIUMPYSEC-2026-1617 CVE-2025-66416 GHSA-9h52-p55h-vw2fModel Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
- MEDIUMGHSA-rwrf-2pqf-9j8j CVE-2026-116686Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
- MEDIUMGHSA-5h93-6whr-6q8j CVE-2026-116685Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
idnaPyPI 3.10 MEDIUM 2 advisories 3.15
- MEDIUMPYSEC-2026-215 CVE-2026-45409 GHSA-65pc-fj4g-8rjxInternationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, payloads such as `"\\u0660" * N` or `"\\u30fb" * N + "\\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support). A workaround is available. Domain names cannot exceed 253 characters in length. If this length limit is enforced prior to passing the domain to the `idna.encode()` function, it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.
- MEDIUMGHSA-65pc-fj4g-8rjx CVE-2026-45409 PYSEC-2026-215Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
pygmentsPyPI 2.19.2 MEDIUM 2 advisories 2.20.0
- MEDIUMPYSEC-2026-2987 CVE-2026-4539 GHSA-5239-wwwm-4pmqPygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
- LOWGHSA-5239-wwwm-4pmq CVE-2026-4539 PYSEC-2026-2987Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
python-dotenvPyPI 1.1.1 MEDIUM 2 advisories 1.2.2
- MEDIUMGHSA-mf9w-mj56-hr94 CVE-2026-28684 PYSEC-2026-2270python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
- MEDIUMPYSEC-2026-2270 CVE-2026-28684 GHSA-mf9w-mj56-hr94python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.
requestsPyPI 2.32.4 MEDIUM 2 advisories 2.33.0
- MEDIUMGHSA-gc5v-m9x4-r6x2 CVE-2026-25645 PYSEC-2026-2275Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
- MEDIUMPYSEC-2026-2275 CVE-2026-25645 GHSA-gc5v-m9x4-r6x2Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| Servers in the code | 1 (JianYingDraft) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2025-08-22 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | not stated |
| Created | 2025-08-22 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.