Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

mojawave

Latest version: v1.2.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: pamuiafrika
0 Stars
0 Forks
2 Versions
64 Downloads
Python Repo language

Scan summary

mojawave was last scanned on 1 Dec 2026 at version 1.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 1 Dec 2026.
  • Findings: No rules fired in version 1.2.0.
  • Downloads: 64 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.0 LATEST 1 Dec 2026 No rules fired
1.1.0 29 Oct 2026 No rules fired

No rules fired in 1.2.0

Findings

Findings for v1.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

MojaWave Python SDK

A thin, typed Python client for the MojaWave REST API — send SMS (single, bulk, OTP), check credit balances, and verify webhooks across Tanzania's telco networks (Vodacom, Tigo, Airtel, Halotel).

pip install mojawave

Requires Python 3.8+.

Quickstart

from mojawave import MojaWave

client = MojaWave(api_key="sk_live_mw_...")  # or set MOJAWAVE_API_KEY

msg = client.sms.send(
    to="+255753276939",
    sender="MojaWave",
    message="Hello from Mojawave! Your verification code is 1234.",
)
print(msg.id, msg.status)

The client reads MOJAWAVE_API_KEY from the environment when api_key is omitted. Use an sk_test_mw_ key for the sandbox — no real messages are sent and no charges apply.

Never expose your live API key in client-side code. Use environment variables and server-side requests only.

Sending SMS

Single message
msg = client.sms.send(
    to="+255712345678",
    sender="MojaWave",                 # sender ID (≤11 alphanumeric chars); defaults to MojaWave
    message="Your code is 1234.",
    webhook_url="https://example.com/webhooks/sms",  # optional delivery receipts
    schedule_at="2026-07-01T09:00:00Z",              # optional ISO-8601 schedule
    metadata={"customer_id": "cust98765"},           # optional, echoed back
    tags=["onboarding", "verification"],             # optional
)
Look up a message
msg = client.sms.get("89b82624-f1a2-4f5e-85b5-102e79a06779")
if msg.delivered:
    print("Delivered at", msg.timeline.delivered_at)
elif msg.failed:
    print("Failed:", msg.failure_reason)
Bulk send (up to 10,000 recipients)

Bulk jobs run asynchronously — you get a job back immediately, then poll it.

job = client.sms.bulk(
    name="Marketing Campaign Q1",
    sender="MojaWave",
    message="Hello {name}, your code is {code}",
    recipients=[
        {"to": "+255712345678", "personalization": {"name": "John", "code": "ABC123"}},
        {"to": "+255712345679", "personalization": {"name": "Jane", "code": "XYZ789"}},
        "+255712345680",  # a bare string works too (no personalization)
    ],
    webhook_url="https://example.com/webhooks",
)
print(job.id, job.status, job.total_recipients)

# Poll for progress
job = client.sms.get_bulk(job.id)
print(f"{job.progress_percent}% — {job.sent_count} sent")

Unicode messages have a 70-character per-segment limit (vs. 160 for plain SMS). Plan message length accordingly.

Credits

balances = client.credits.balance()
print(balances.sms.balance, balances.sms.is_low_balance)
print(balances.email.balance)

Resellers: sending for your customers

If MojaWave has made your account a reseller, one API key (with the reseller:manage and sms:send permissions) can act as any of your customers:

shop = client.for_customer(customer_id)  # id from client.reseller.create_customer
shop.sms.send(to="+255712345678", sender="DUKAMASTA", message="Ofa leo!")
print(shop.credits.balance().sms.balance)  # the customer's balance

The customer's wallet is charged and its sender IDs (or one you shared) apply. for_customer works for sending, bulk jobs, message lookups, sender IDs and balances; other endpoints answer 400 ON_BEHALF_NOT_SUPPORTED.

Webhooks

MojaWave signs every webhook with an X-MojaWave-Signature header (HMAC-SHA256 of the raw body). Always verify against the raw request bytes — parsing to JSON first can change whitespace and break the check.

from mojawave import construct_event, WebhookVerificationError, SIGNATURE_HEADER

# Flask / Django view
signature = request.headers.get(SIGNATURE_HEADER)
try:
    event = construct_event(request.get_data(), signature, WEBHOOK_SECRET)
except WebhookVerificationError:
    return "Forbidden", 403

if event.type == "message.delivered":
    ...

Event types: message.sent, message.delivered, message.failed, credits.low. See examples/flask_webhook.py for a full handler.

If you only need a boolean, use verify_signature(payload, signature, secret).

Error handling

Every documented HTTP status maps to a typed exception. All inherit from MojaWaveError.

Exception HTTP Code
InvalidRequestError 400 invalid_request
AuthenticationError 401 unauthorized
InsufficientBalanceError 402 insufficient_balance
UnprocessableError 422 unprocessable
RateLimitError 429 rate_limit_exceeded
ServerError 5xx server_error
APIConnectionError / APITimeoutError — transport failures
from mojawave import InsufficientBalanceError, RateLimitError

try:
    client.sms.send(to="+255712345678", message="hi")
except InsufficientBalanceError:
    ...  # top up
except RateLimitError as e:
    time.sleep(e.retry_after or 1)

The client automatically retries 429 and 5xx responses with exponential backoff (honouring Retry-After), controlled by max_retries (default 2).

Configuration

client = MojaWave(
    api_key="sk_live_mw_...",
    environment="live",        # or "sandbox"
    timeout=30.0,              # seconds
    max_retries=2,
    base_url="https://api.mojawave.com/v1",
)

Rate-limit headers from the most recent response are available on client.rate_limit (.limit, .remaining, .reset). The client is usable as a context manager to ensure the HTTP session is closed:

with MojaWave() as client:
    client.sms.send(to="+255712345678", message="hi")

Development

pip install -e ".[dev]"
pytest
mypy

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases mojawave

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229