@postalsys/email-ai-tools 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/VULNERABILITY_REPORT.yml +75 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/SECURITY.md +124 -45
- package/package.json +6 -6
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
name: "@postalsys/email-ai-tools security vulnerability report"
|
|
2
|
+
description: "Report an exploitable security vulnerability in @postalsys/email-ai-tools"
|
|
3
|
+
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Before reporting, read our
|
|
9
|
+
[Security Policy](https://github.com/postalsys/email-ai-tools/security/policy).
|
|
10
|
+
|
|
11
|
+
Reports must demonstrate a credible security impact.
|
|
12
|
+
Technically valid bugs without a realistic attack
|
|
13
|
+
scenario belong in the regular issue tracker.
|
|
14
|
+
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: summary
|
|
17
|
+
attributes:
|
|
18
|
+
label: Vulnerability summary
|
|
19
|
+
description: Describe the vulnerability and affected versions.
|
|
20
|
+
validations:
|
|
21
|
+
required: true
|
|
22
|
+
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: attacker
|
|
25
|
+
attributes:
|
|
26
|
+
label: Attacker capabilities
|
|
27
|
+
description: |
|
|
28
|
+
What can an attacker control without already having
|
|
29
|
+
privileged access to the application or its configuration?
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
32
|
+
min_length: 100
|
|
33
|
+
|
|
34
|
+
- type: textarea
|
|
35
|
+
id: exploit
|
|
36
|
+
attributes:
|
|
37
|
+
label: Realistic exploitation scenario
|
|
38
|
+
description: |
|
|
39
|
+
Describe how this can be exploited in a real application.
|
|
40
|
+
Explain the prerequisites and security boundary crossed.
|
|
41
|
+
validations:
|
|
42
|
+
required: true
|
|
43
|
+
min_length: 150
|
|
44
|
+
|
|
45
|
+
- type: textarea
|
|
46
|
+
id: poc
|
|
47
|
+
attributes:
|
|
48
|
+
label: Proof of concept
|
|
49
|
+
description: Provide reproducible steps or working code.
|
|
50
|
+
validations:
|
|
51
|
+
required: true
|
|
52
|
+
|
|
53
|
+
- type: textarea
|
|
54
|
+
id: impact
|
|
55
|
+
attributes:
|
|
56
|
+
label: Security impact
|
|
57
|
+
description: |
|
|
58
|
+
What can the attacker achieve? Who is affected?
|
|
59
|
+
Explain why this is a security vulnerability rather
|
|
60
|
+
than an ordinary bug.
|
|
61
|
+
validations:
|
|
62
|
+
required: true
|
|
63
|
+
min_length: 100
|
|
64
|
+
|
|
65
|
+
- type: checkboxes
|
|
66
|
+
id: confirmation
|
|
67
|
+
attributes:
|
|
68
|
+
label: Reporting requirements
|
|
69
|
+
options:
|
|
70
|
+
- label: I have read the Security Policy.
|
|
71
|
+
required: true
|
|
72
|
+
- label: I have verified the finding against a supported version.
|
|
73
|
+
required: true
|
|
74
|
+
- label: I have described a credible attacker-controlled scenario.
|
|
75
|
+
required: true
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.2](https://github.com/postalsys/email-ai-tools/compare/v2.2.1...v2.2.2) (2026-10-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update libmime to 5.4.8, email-text-tools to 2.4.19 and tldts to 7.4.18 ([7d664e6](https://github.com/postalsys/email-ai-tools/commit/7d664e65cf7c2e0f6091a1f257557d5bd141f0f9))
|
|
9
|
+
|
|
3
10
|
## [2.2.1](https://github.com/postalsys/email-ai-tools/compare/v2.2.0...v2.2.1) (2026-10-04)
|
|
4
11
|
|
|
5
12
|
|
package/SECURITY.md
CHANGED
|
@@ -1,79 +1,158 @@
|
|
|
1
1
|
# Security Policy
|
|
2
2
|
|
|
3
|
-
`@postalsys/email-ai-tools` is a Node.js library that processes email
|
|
4
|
-
forwards it to OpenAI-compatible AI APIs to generate summaries
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
`@postalsys/email-ai-tools` is a Node.js library that processes untrusted email
|
|
4
|
+
content and forwards it to OpenAI-compatible AI APIs to generate summaries and
|
|
5
|
+
risk assessments. It handles API credentials passed in by the caller. We welcome
|
|
6
|
+
responsible reports of vulnerabilities that present a credible security risk to
|
|
7
|
+
users. Please distinguish security vulnerabilities from ordinary bugs, unusual
|
|
8
|
+
edge cases, and hardening suggestions.
|
|
8
9
|
|
|
9
10
|
## Supported Versions
|
|
10
11
|
|
|
11
|
-
Security fixes are released only against the latest version. We do not
|
|
12
|
-
patches to older
|
|
13
|
-
supported way to receive security updates.
|
|
12
|
+
Security fixes are released only against the latest major version. We do not
|
|
13
|
+
backport patches to older majors, so upgrading to the current release line is
|
|
14
|
+
the supported way to receive security updates.
|
|
14
15
|
|
|
15
16
|
| Version | Supported |
|
|
16
17
|
| ------- | ------------------ |
|
|
17
|
-
|
|
|
18
|
-
| <
|
|
18
|
+
| 2.x | :white_check_mark: |
|
|
19
|
+
| < 2.0 | :x: |
|
|
19
20
|
|
|
20
|
-
If you are on an older
|
|
21
|
+
If you are on an older major, please upgrade. See the release notes at
|
|
21
22
|
<https://github.com/postalsys/email-ai-tools/releases> before updating.
|
|
22
23
|
|
|
23
|
-
##
|
|
24
|
+
## What Qualifies as a Security Vulnerability
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
A security report should identify a realistic way for an attacker to cross a
|
|
27
|
+
security boundary in a supported version of `@postalsys/email-ai-tools`.
|
|
28
|
+
Unexpected behavior, a failing test, or a technically correct proof of concept
|
|
29
|
+
is not sufficient on its own to establish security impact.
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
In particular, explain:
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
- **Attacker capabilities:** Who is the attacker, and what inputs, systems, or
|
|
34
|
+
responses can they control _without_ already having the privileges or secrets
|
|
35
|
+
they are trying to gain?
|
|
36
|
+
- **Attack path:** How does attacker-controlled input reach the affected code
|
|
37
|
+
through a supported public API or a realistic application integration?
|
|
38
|
+
- **Prerequisites:** What configuration and user actions are required? If the
|
|
39
|
+
attack depends on unusual options or deliberately malformed input, explain why
|
|
40
|
+
those conditions could arise in a real application.
|
|
41
|
+
- **Impact:** What confidentiality, integrity, or availability boundary is
|
|
42
|
+
crossed, and what can the attacker achieve as a result?
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
A vulnerability involving an optional or less common feature can still qualify
|
|
45
|
+
if these conditions are met. Conversely, the existence of a defensive check in
|
|
46
|
+
the code does not, by itself, establish that every bypass of that check has a
|
|
47
|
+
realistic security impact.
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
- The function involved (e.g. `generateSummary`, `riskAnalysis`,
|
|
40
|
-
`generateEmbeddings`, `embeddingsQuery`, `questionQuery`, `listModels`).
|
|
41
|
-
- A clear description of the issue and its impact (e.g. prompt injection that
|
|
42
|
-
escalates privileges in a consuming application, credential or API-token
|
|
43
|
-
disclosure, SSRF via a configurable API base URL, injection, information
|
|
44
|
-
disclosure, denial of service through unbounded input).
|
|
45
|
-
- A minimal proof of concept or reproduction steps.
|
|
46
|
-
- Any suggested remediation, if you have one.
|
|
49
|
+
## Reporting a Vulnerability
|
|
47
50
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
who wish to be named are credited.
|
|
51
|
+
**Do not disclose suspected exploitable vulnerabilities through public GitHub
|
|
52
|
+
issues, pull requests, or discussions before coordinating with the
|
|
53
|
+
maintainers.**
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
Report privately through one of the following channels:
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
1. **GitHub Security Advisories (preferred):**
|
|
58
|
+
<https://github.com/postalsys/email-ai-tools/security/advisories/new>.
|
|
59
|
+
2. **Email:** **andris@postalsys.com**. Encrypt sensitive details if possible
|
|
60
|
+
(PGP key fingerprint `5D952A46E1D8C931F6364E01DC6C83F4D584D364`).
|
|
61
|
+
|
|
62
|
+
### Required Information
|
|
63
|
+
|
|
64
|
+
Please provide enough information to evaluate both the defect and its security
|
|
65
|
+
impact. Reports should include:
|
|
66
|
+
|
|
67
|
+
1. The affected `@postalsys/email-ai-tools` version or commit, Node.js version,
|
|
68
|
+
and relevant configuration.
|
|
69
|
+
2. A concise description of the issue and the affected public API or code path
|
|
70
|
+
(for example `generateSummary`, `listModels`, or `describeModel`, and the
|
|
71
|
+
stage involved: email parsing, prompt construction, or the outbound API
|
|
72
|
+
request).
|
|
73
|
+
3. A minimal, tested reproduction, including steps to run it, expected behavior,
|
|
74
|
+
and observed behavior.
|
|
75
|
+
4. A concrete threat model: attacker control, prerequisites, trust boundary, and
|
|
76
|
+
resulting impact. Clearly distinguish what your reproduction proves from what
|
|
77
|
+
you believe might be possible.
|
|
78
|
+
5. An explanation of why the issue affects real deployments beyond a
|
|
79
|
+
deliberately constructed test setup, where this is not obvious.
|
|
80
|
+
|
|
81
|
+
A suggested fix is welcome but does not replace an explanation of
|
|
82
|
+
exploitability. A complete real-world exploit is not always necessary, but the
|
|
83
|
+
report must make a credible security impact clear.
|
|
84
|
+
|
|
85
|
+
### Reports That May Be Treated as Ordinary Bugs
|
|
86
|
+
|
|
87
|
+
The following generally do **not** qualify for private security handling unless
|
|
88
|
+
you can demonstrate an additional, meaningful security boundary crossing:
|
|
89
|
+
|
|
90
|
+
- Issues that require the attacker to control trusted application code,
|
|
91
|
+
administrator-only configuration, or the secret they supposedly extract.
|
|
92
|
+
- Problems caused solely by application-level misuse, exposed credentials, or
|
|
93
|
+
insecure deployment choices outside `@postalsys/email-ai-tools`'s control.
|
|
94
|
+
- Contrived proof-of-concept setups where the tester controls both sides of a
|
|
95
|
+
request, without explaining how a separate attacker could trigger the issue.
|
|
96
|
+
- Parser quirks, unexpected behavior, and bypasses of internal checks with no
|
|
97
|
+
demonstrated security impact.
|
|
98
|
+
- Speculative findings based only on static analysis or an automated tool's
|
|
99
|
+
assessment, without a verified reproduction and credible attack scenario.
|
|
100
|
+
|
|
101
|
+
These may still be valid bugs and may be considered through the normal issue
|
|
102
|
+
tracker. Please coordinate before making any potentially exploitable details
|
|
103
|
+
public. Classification as a bug does not guarantee a fix or a particular
|
|
104
|
+
priority.
|
|
105
|
+
|
|
106
|
+
### Automated and AI-Assisted Reports
|
|
107
|
+
|
|
108
|
+
Automated analysis and AI tools are welcome as research aids, but the person
|
|
109
|
+
submitting a report is responsible for verifying its claims. **Do not submit
|
|
110
|
+
bulk, unverified, or speculative AI-generated findings.** Test each finding
|
|
111
|
+
against a supported release and establish the actual security impact. Reports
|
|
112
|
+
that do not meet the requirements above may be closed without further
|
|
113
|
+
investigation or individual feedback; they can be resubmitted with stronger
|
|
114
|
+
evidence.
|
|
115
|
+
|
|
116
|
+
## Triage and Disclosure
|
|
117
|
+
|
|
118
|
+
`@postalsys/email-ai-tools` is maintained by a small team, and there is **no
|
|
119
|
+
guaranteed response or resolution time**. Reports are prioritized based on
|
|
120
|
+
demonstrated impact, exploitability, affected usage, and available maintenance
|
|
121
|
+
resources.
|
|
122
|
+
|
|
123
|
+
A private report does not automatically become a security advisory. Confirmed
|
|
124
|
+
vulnerabilities may be fixed and disclosed through GitHub Security Advisories;
|
|
125
|
+
other findings may be closed, deferred, or handled as ordinary bugs. Please do
|
|
126
|
+
not disclose details of an unresolved, potentially exploitable issue publicly
|
|
127
|
+
without coordinating with the maintainers.
|
|
128
|
+
|
|
129
|
+
## CVEs and Credit
|
|
130
|
+
|
|
131
|
+
We do not request or manage CVE identifiers. A report being acknowledged, a bug
|
|
132
|
+
being fixed, or a pull request being merged does **not** mean that
|
|
133
|
+
`@postalsys/email-ai-tools` has confirmed a security vulnerability or endorsed a
|
|
134
|
+
CVE assignment. We do not guarantee advisories, CVE identifiers, or public
|
|
135
|
+
credit for reports. For confirmed vulnerabilities disclosed through an advisory,
|
|
136
|
+
substantive reporters may be credited if they wish.
|
|
59
137
|
|
|
60
138
|
## Scope
|
|
61
139
|
|
|
62
|
-
In scope: the library source in this repository
|
|
140
|
+
In scope: the library source in this repository: email parsing and visible-text
|
|
63
141
|
extraction, prompt construction, token budgeting, and the outbound HTTP calls to
|
|
64
142
|
OpenAI-compatible endpoints (including handling of the caller-supplied API token
|
|
65
143
|
and the configurable API base URL).
|
|
66
144
|
|
|
67
145
|
Out of scope:
|
|
68
146
|
|
|
69
|
-
- Vulnerabilities in your own application code that integrates with this
|
|
147
|
+
- Vulnerabilities in your own application code that integrates with this
|
|
148
|
+
library.
|
|
70
149
|
- The behavior, content, or safety of the AI models and API providers this
|
|
71
150
|
library connects to (OpenAI or any OpenAI-compatible endpoint you configure).
|
|
72
151
|
- Model "hallucinations" or undesirable AI output that does not stem from a code
|
|
73
|
-
defect in this library.
|
|
152
|
+
defect in this library. Prompt injection matters only where it crosses a
|
|
153
|
+
boundary in a consuming application.
|
|
74
154
|
- Misuse such as passing untrusted endpoints as the API base URL, leaking your
|
|
75
155
|
own API tokens, or exposing the library's output to untrusted parties.
|
|
76
|
-
- Social-engineering reports
|
|
77
|
-
concrete impact.
|
|
156
|
+
- Social-engineering reports.
|
|
78
157
|
|
|
79
|
-
Thank you for helping keep email-ai-tools and its users safe.
|
|
158
|
+
Thank you for helping keep `@postalsys/email-ai-tools` and its users safe.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postalsys/email-ai-tools",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Summarize and risk-score email messages with an OpenAI-compatible chat model",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"eslint": "10.12.0",
|
|
27
27
|
"eslint-config-nodemailer": "1.2.0",
|
|
28
28
|
"eslint-config-prettier": "10.1.8",
|
|
29
|
-
"mailparser": "3.9.
|
|
30
|
-
"prettier": "3.9.
|
|
29
|
+
"mailparser": "3.9.38",
|
|
30
|
+
"prettier": "3.9.10"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@postalsys/email-text-tools": "2.4.
|
|
33
|
+
"@postalsys/email-text-tools": "2.4.19",
|
|
34
34
|
"dom-serializer": "2.0.0",
|
|
35
35
|
"domutils": "3.2.2",
|
|
36
36
|
"htmlparser2": "10.1.0",
|
|
37
|
-
"libmime": "5.4.
|
|
38
|
-
"tldts": "7.4.
|
|
37
|
+
"libmime": "5.4.8",
|
|
38
|
+
"tldts": "7.4.18",
|
|
39
39
|
"undici": "7.30.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|